Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: protect rtsp stream

  1. #1
    Join Date
    Dec 2012
    Posts
    24

    Default protect rtsp stream

    I want protect ym stream from wowza with user and paswd, how can I do it, like


    rtsp://usernameassword@:127.0.0.1:1935/live/mystream

    thx

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

    Default

    Set the /conf/live/Application.xml /RTP /Authentication /PlayMethod to "basic"

    Then add usernames and passwords to the /conf/publish.password file.

    Richard

  3. #3
    Join Date
    Dec 2012
    Posts
    24

    Default

    I can not connect

    my stream

    rtmp://usernameassword@:127.0.0.1:1935/live/tv.stream


    in player I have message

    can not play media file


    but stream
    rtmp://:127.0.0.1:1935/live/tv.stream

    still going

    I cange next line in conf/liveAplication,xml

    <PublishMethod>digest</PublishMethod>
    <PlayMethod>basic</PlayMethod>


    thx
    Last edited by povelg; 02-11-2013 at 04:56 AM.

  4. #4

    Default

    rtsp ? or rtmp ?

  5. #5
    Join Date
    Dec 2012
    Posts
    24

    Default

    rtmp

    thx

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

    Default

    For RTMP you need ModuleSecureToken, or ModuleSecureURLParams. Take a look at the Security Overview:

    http://www.wowza.com/forums/content....urity-overview

    Richard

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

  8. #8
    Join Date
    Dec 2012
    Posts
    24

    Default

    nothin

    INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/ftv.stream]: Add chunk: id:10 mode:TS[H264,AAC] a/v/
    k:138/240/3 duration:9599
    INFO session connect-pending 88.146.190.254 -
    INFO server comment - size: 3
    ERROR server comment - ModuleOnConnectAuthenticate.onConnect: java.lang.ArrayIndexOutOfBoundsException: 1
    INFO session connect 88.146.190.254 -
    INFO session disconnect 1706780801 -
    INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/ftv.stream]: Add chunk: id:11 mode:TS[H264,AAC] a/v/
    k:169/294/4 duration:11761
    INFO session connect-pending 88.146.190.254 -
    INFO server comment - size: 3
    ERROR server comment - ModuleOnConnectAuthenticate.onConnect: java.lang.ArrayIndexOutOfBoundsException: 1
    INFO session connect 88.146.190.254 -
    INFO session disconnect 1275818787 -
    INFO session connect-pending 88.146.190.254 -
    INFO server comment - size: 3
    ERROR server comment - ModuleOnConnectAuthenticate.onConnect: java.lang.ArrayIndexOutOfBoundsException: 1
    INFO session connect 88.146.190.254 -
    INFO session disconnect 1928809594 -

  9. #9
    Join Date
    Dec 2012
    Posts
    24

    Default

    I must ask again:


    I want protect stream link from wowza out. When anosther user want watch channel from wowza, I need set user and paswd on stream which go out from wowza


    for examle

    my stream from wowza:

    rtmp://:127.0.0.1:1935/live/tv.stream


    This channel link I give you ym frineds, and I want that every my frieend have user and paswd, like:


    rtmp://friend1:friend1@:127.0.0.1:1935/live/tv.stream

    rtmp://friend2:friend2@:127.0.0.1:1935/live/tv.stream

    rtmp://friend3:friend3@:127.0.0.1:1935/live/tv.stream

    etc


    I'm tired of this,Whatever you do, nothing.


    I used this method:
    http://www.wowza.com/forums/content.php?449

    1. wms-plugin-security.jar copy in /lib
    2. aded this module , edit Application.xml in [install-dir]/conf
    <Module>
    <Name>ModuleRTMPAuthenticate</Name>
    <Description>ModuleRTMPAuthenticate</Description>
    <Class>com.wowza.wms.security.ModuleRTMPAuthenticate</Class>
    </Module>

    3. in publish.password I aded user paswd, like

    friend1 friend1
    friend2 friend2

    4. copy publish.password in /conf/live
    5.aded this properties, edit Application.xml in [install-dir]/conf

    <Property>
    <Name>rtmpEncoderAuthenticateFile</Name>
    <Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/publish.password</Value>
    </Property>



    when I try

    rtmp://friend1:friend1@:127.0.0.1:1935/live/tv.stream

    or

    rtmp://127.0.0.1:1935/live/tv.stream?friend1&friend1

    or

    rtmp://127.0.0.1/live/tv.stream?friend1&friend1


    big nothing


    do you can instruct me about this

    thx

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

    Default

    The last one I showed will work for querystring:

    http://www.wowza.com/forums/content....nnect-RTMP-URL

    rtmp://127.0.0.1:1935/live?friend1&friend1/tv.stream

    If you are using the Module Collection, make sure you re-start Wowza after adding the .jar file.

    Richard
    Last edited by rrlanham; 02-12-2013 at 07:46 AM.

Page 1 of 3 123 LastLast

Similar Threads

  1. What should i use to protect my Live stream
    By mic1983 in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 05-03-2013, 01:48 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
  •