Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: liverepeter and rtsp

  1. #1
    Join Date
    Aug 2011
    Posts
    116

    Default liverepeter and rtsp

    Hi
    I am trying to establish an origin-edge configuration.
    in the origin i publish the stream as rtp (streammanager) and on the edge as liverepeter.

    as far as i know the edge and origin uses rtmp to comunicate between them.
    how can i configure the origin that he will only stream rtmp to the edge server and in the edge server i will be able to view all formats???

    know in the current configuration i can view rtsp/rtmp from the origin but i want to block the rtsp so that i will be able to use the security modle for rtmp.

    please tell me what i am missing


    Thx

    /Asaf.

  2. #2
    Join Date
    Aug 2011
    Posts
    116

    Default

    Help anyone?

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

    Default

    Follow this guide, enabling all the regular LiveStreamPacketizers on the origin, and the repeater packetizers on the edge

    http://www.wowza.com/forums/content....tream-repeater

    Richard

  4. #4
    Join Date
    Aug 2011
    Posts
    116

    Default

    yes i did it the first time.
    the problem is that useres can conect to the origin directly. i just want the users to be able to connect throw the edge.
    if i will enable only rtmp with secure token this will solve the problem. but for that i need to disable all ather methods like rtsp and http from origin.

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

    Default

    SecureToken does not prevent you from serving http and rtsp clients from the edge.

    Richard

  6. #6
    Join Date
    Aug 2011
    Posts
    116

    Default

    yes i understand that.
    but how can i prevent anyone to connect to the origin directly and not throw the edge.

    the streamtype in the application.xml at the origin is liverepeter-origin and i start the application from the streammanager as rtp.
    i want to comunicate only with the edge so that users will not be able to play a stream directly from the origin.

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

    Default

    That is what adding SecureToken between the edge and origin does. Please follow the guide and give it a try. Adding SecureToken between the edge and origin ensures that only your edge's can connect to the origin.

    Richard

  8. #8
    Join Date
    Aug 2011
    Posts
    116

    Default

    ok i understand.
    last small question
    but that is only for rtmp no?
    will it also prevent users to directly connect to the origin via rtsp/http?

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

    Default

    To prevent RTSP connection to the origin, change the origin Application.xml /RTP /Authentication /PlayMethod to "digest".

    To prevent HTTP clients from connecting to the origin, you could use onHTTPSessionCreate to reject all sessions; or you could packetize on the edge.

    First solution, add this Module to reject all HTTP sessions. Edge's use RTMP to origin even for HTTP clients, so it should work.

    package com.wowza.wms.example.module;
    
    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)
    	{
    		httpSession.rejectSession();
    	}
    }
    2nd solution is packetize on the edge. Remove all LiveStreamPacketizers from the origin, and change the repeater packetizers on the edge to the regular LiveStreamPacketizers that you were using on the origin.

    Richard

  10. #10
    Join Date
    Aug 2011
    Posts
    116

    Default

    Hi Richard

    When I change In the origin The Application.xml /RTP /Authentication /PlayMethod to "digest".
    it "solve" my problem but now i can't connect also from the edge.

    as i undersantd it, the connection between the origin and edge is throw rtmp so why does it affect the connection from the edge?

Page 1 of 2 12 LastLast

Similar Threads

  1. RTSP no sound (VLC, Android), also with Wowza RTSP demo page
    By luvolondon in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 5
    Last Post: 04-29-2013, 12:44 PM

Posting Permissions

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