Results 1 to 3 of 3

Thread: Not getting control access to HTTP (HLS) streams

  1. #1
    Join Date
    Jun 2015
    Posts
    3

    Unhappy Not getting control access to HTTP (HLS) streams

    Hi

    Goal : Get the control access to HTTP stream publishing and add a logic to allow multiplexing of http stream.

    Know : 1. Configure PushPublishMap.txt under /usr/local/WowzaStreamingEngine/conf folder and set following properties.
     hlstest.stream={"entryName":"wowzatest", "profile":"cupertino-akamai", "akamai.hostId":"p-ep3201.ingest.akamaientrypoint.net", "debugLog":"true", "destinationName":"akamai", "akamai.streamId":"3201", "http.playlistCount":"2",        
                                       "streamName":"wowzatest", "http.writerDebug":"true"}
    2. Create custom Module extended from ModuleBase. Generate .jar using Wowza IDE guidelines and specify the module in Application.xml file for specific application.

    package com.wowza.tutorial;
    
    import com.wowza.wms.application.*;
    import com.wowza.wms.amf.*;
    import com.wowza.wms.client.*;
    import com.wowza.wms.module.ModuleBase;
    import com.wowza.wms.request.*;
    import com.wowza.wms.stream.*;
    import com.wowza.wms.httpstreamer.model.*;
    import com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.*;
    
    public class HelloWowza extends  ModuleBase {
    
    	public void onAppStart(IApplicationInstance appInstance) {
    		String fullname = appInstance.getApplication().getName() + "/"
    				+ appInstance.getName();
    		getLogger().info("onAppStart: " + fullname);
    	}
    
    	public void onAppStop(IApplicationInstance appInstance) {
    		String fullname = appInstance.getApplication().getName() + "/"
    				+ appInstance.getName();
    		getLogger().info("onAppStop: " + fullname);
    	}
    
    	public void onConnect(IClient client, RequestFunction function,
    			AMFDataList params) {
    		getLogger().info("onConnect: " + client.getClientId());
    	}
    
    	public void onConnectAccept(IClient client) {
    		getLogger().info("onConnectAccept: " + client.getClientId());
    	}
    
    	public void onConnectReject(IClient client) {
    		getLogger().info("onConnectReject: " + client.getClientId());
    	}
    
    	public void onDisconnect(IClient client) {
    		getLogger().info("onDisconnect: " + client.getClientId());
    	}
    
    	public void onStreamCreate(IMediaStream stream) {
    		getLogger().info("onStreamCreate: " + stream.getSrc());
    	}
    
    	public void onStreamDestroy(IMediaStream stream) {
    		getLogger().info("onStreamDestroy: " + stream.getSrc());
    	}
    	
    	public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
    		getLogger().info("onHTTPSessionCreate: " + httpSession.getSessionId());
    		
    	}
    
    	public void onHTTPSessionDestroy(IHTTPStreamerSession httpSession) {
    		getLogger().info("onHTTPSessionDestroy: " + httpSession.getSessionId());
    	}
    
    	public void onHTTPCupertinoStreamingSessionCreate(
    			HTTPStreamerSessionCupertino httpSession) {
    		getLogger().info(
    				"onHTTPCupertinoStreamingSessionCreate: "
    						+ httpSession.getSessionId());
    	}
    
    	public void onHTTPCupertinoStreamingSessionDestroy(
    			HTTPStreamerSessionCupertino httpSession) {
    		getLogger().info(
    				"onHTTPCupertinoStreamingSessionDestroy: "
    						+ httpSession.getSessionId());
    	}
    
    }
    3. Start stream and when HTTP publishing happens, it should call onHTTPSessionCreate function so i can add logic specific to multiplexing.

    Based on above steps, I see the logline is printed for getLogger().info("onAppStart: " + fullname); call but not for getLogger().info("onHTTPSessionCreate: " + httpSession.getSessionId());.

    I don't understand why onHTTPSessionCreate and onHTTPCupertinoStreamingSessionCreate methods are not called when application start publishing the stream.

    Can anyone help me here ? please correct me if i am doing it wrong or explain if i have not understood it correctly.

  2. #2

    Default

    This was resolved in a support ticket.

    Roger.

  3. #3
    Join Date
    Jun 2015
    Posts
    3

    Default

    Hi Roger,

    Thanks for helping out with this.

Similar Threads

  1. authentication for Flash RTMP and control access to Apple HTTP Streaming
    By Yuri!! in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 05-13-2013, 06:35 AM
  2. Control HTTP, RTMP & RTSP access through external PHP
    By hdezela in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 01-27-2012, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •