Results 1 to 6 of 6

Thread: onHTTPSessionCreate repeat stream from another rtmp source

  1. #1
    Join Date
    Jul 2010
    Posts
    6

    Question onHTTPSessionCreate repeat stream from another rtmp source

    Help me please.

    I want to handle HLS request to our wowza server with query params
    Get needed info from query about remote flash media server source(rtmp) and create stream with params
    After that pass new stream back to client but with encoding to HLS.

    I found info about PushPublisher class which can do something like this but in reverse direction (not play but publish).

    Maybe exists special plugin/module for this purpose? or server side API?

    import com.wowza.wms.httpstreamer.model.IHTTPStreamerSession;
    import com.wowza.wms.module.*;
    import com.wowza.wms.application.*;
    
    public class ModuleAccessControlHTTPStreaming extends ModuleBase
    {
    	public void onHTTPSessionCreate(IHTTPStreamerSession httpSession)
    	{
    		String queryStr = httpSession.getQueryStr();
    
                    //GET ALL THE NECESSARY INFO ABOUT EXTERNAL STREAM FROM queryStr
    
                    //CREATE STREAM TO REMOTE FLASH MEDIA SERVER AND PASS NEEDED INFO WITH AMF
    
                    //LINK NEW STREAM WITH CURRENT REQUEST
    
                    httpSession.redirectSession(...); //REDIRECT TO NEW STREAM ??

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Hi,

    This guide shows how to redirect a HTTP session.

    Richard

  3. #3
    Join Date
    Jul 2010
    Posts
    6

    Question

    Hi, Richard.

    Do you mean we can redirect http session to rtmp session?

    public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
         httpSession.redirectSession("rtmp://...

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    No, there is not a way to redirect an HTTP session to RTMP stream. It would be redirected to another HTTP stream.

    Richard

  5. #5
    Join Date
    Jul 2010
    Posts
    6

    Default

    Quote Originally Posted by rrlanham View Post
    No, there is not a way to redirect an HTTP session to RTMP stream. It would be redirected to another HTTP stream.

    Richard
    So.. Is it possible start rtmp stream on server side?

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Hi,

    No, it is not possible to start a playback stream server-side without an RTMP client initiating the connection and stream (NetConnection and NetStream).

    Richard

Similar Threads

  1. Using FFmpeg with an RTMP Wowza stream on an app instance as the source
    By Benny Veo in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 08-21-2013, 08:15 AM
  2. Stream not found before onHTTPSessionCreate
    By Renato@Voitel in forum General Forum
    Replies: 2
    Last Post: 06-19-2013, 08:06 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
  •