• How to control access to Microsoft Smooth Streaming (smoothstreaming)

    Example module that illustrates basic API for controlling access to a Smooth Streaming stream.

    Code:
    package com.wowza.wms.example.module;
    
    import com.wowza.wms.application.IApplicationInstance;
    import com.wowza.wms.httpstreamer.smoothstreaming.httpstreamer.*;
    import com.wowza.wms.module.*;
    
    public class ModuleAccessControlSmoothStreaming extends ModuleBase
    {
    	public void onHTTPSmoothStreamingSessionCreate(HTTPStreamerSessionSmoothStreamer httpSmoothStreamingSession)
    	{
    		boolean isGood = true;
    		
    		String ipAddressClient = httpCupertinoStreamingSession.getIpAddress();
    		String ipAddressServer = httpCupertinoStreamingSession.getServerIp();
    		String queryStr = httpSmoothStreamingSession.getQueryStr();
    		String referrer = httpSmoothStreamingSession.getReferrer();
    		String cookieStr = httpSmoothStreamingSession.getCookieStr();
    		String userAgent = httpSmoothStreamingSession.getUserAgent();
    		
    		IApplicationInstance appInstance = httpSmoothStreamingSession.getAppInstance();
    		String streamName = httpSmoothStreamingSession.getStreamName();
    		
    		// Here you can use the request and session information above to determine 
    		// if you want to reject the connection
    		// isGood = true/false;
    		
    		getLogger().info("ModuleAccessControlSmoothStreaming.onHTTPSmoothStreamingSessionCreate["+appInstance.getContextStr()+":"+streamName+"]: accept:"+isGood);
    		
    		if (!isGood)
    			httpSmoothStreamingSession.rejectSession();
    	}
    
    }

    Comments 2 Comments
    1. mrizzo -
      Hi,
      I have got a good experiance with Wowza Server for iphone, BB and (generic RTSP device) and I would to continue in this way but I need to understand the compatibility Windows Phone 7 (WP7) via wowza Smooth Streaming. For this reason I need to ask you some questions for live and vod stream:

      1. Is the wowza solution fully compliant with WP7? if yes, Which version? or if no, which functionalities don't work very well?
      2. Did you have test it in both way VoD and Streaming? if yes, Could you please show me (for macro points) your experience?
      3. Did you have stream live on WP7 with a long time and which configuration for live (image size, level of h.264, profile, bitrate, fps etc) ? And For VoD, Which is the maximun size managed during your test?
      4. Could you suggest me the configuration tips to apply on wowza system?
      5. if you have seen during your test some particular configuration to apply on wowza, could you please show me these constraints for both live and VoD contents?
      6. Could you please confirm that wowza smooth streaming configuration works very well on linux redhat S.O. obviously correlated to the WP7 platform?

      As I said before I'm using your solution on ReadHat environment for every kind of smart mobile handset and for me It could be better to receive your feedback for this new interoperability from wowza to WP7.

      Thansk in advance for you support.
      Mario
    1. rrlanham -
      Windows Mobile is not listed in the Playback devices that work article:

      http://www.wowzamedia.com/forums/con...et-top-desktop)

      This is not a complete list, and WP7 may work. All I can suggest is to try it.

      I have recently found that Windows Media Desktop Player plays vod cupertino streams from Wowza. So try that and rtsp.

      Richard