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

Thread: RTMP authentication from URL ?

  1. #1

    Default RTMP authentication from URL ?

    Is exist any module , whitch can enable RTMP publish authentication from URL ? like
    rtmp://user:pass@wowza_adress:1935/application ?
    or the same for rtsp authentication ?
    rtsp://user:pass@wowza_adress/application

  2. #2

    Default

    You can use URL params as shown in this example.

    You'd put the credentials on the end of the URL.

  3. #3

    Default

    randall : thanx .. i will test ist tomorow ..

  4. #4

    Default

    Randall : Yes .. it works OK .. on FMLE .. Where server/application and stream_name are 2 fields .. How to use it on FFMPEG , where is only one line ?

    this not works :
    rtmp://wowza_adress:1935/application/streamname/_definst_/doPublish=12345

  5. #5

    Default

    Pytkin,

    Sorry I mixed up "QueryString" and "URLParms". I meant to give you a different module the first time. Here is a module that parses the URL for the QueryString, so that you can use encoders that don't support RTMP authentication: ModuleOnConnectAuthenticate2.

    Note that the onConnect method runs for both Flash publishers and Clients. There are other examples in the Security section of the Tutorials to overide onPlay (for clients only) or onPublish (for publishers only).

  6. #6

    Default

    I see same problem .. I setup ModuleOnConnectAuthenticate2 by guide .. It works in FMLE in two fields (rtmp://wowza/application?user&pass , and second field is streamname) .. But not works in single field rtmp://wowza/application/streamname?user&pass

  7. #7

    Default

    try:
    rtmp://wowza_adress:1935/application/_definst_/streamname/doPublish=12345
    rtmp://wowza/application/_definst_/streamname?user&pass

  8. #8

    Default

    both not works ..

  9. #9

    Default

    ffmpeg say : [rtmp @ 0x3408a20] Server error: Connection failed: Application rejected connection.
    rtmp://wowza_IP/live/_definst_/streamtest?user&pass: Operation not permitted

    on WOWZA console I see :

    INFO server comment - ModuleStreamRecord.onAppStart
    INFO server comment - ModuleOnConnectAuthenticate: Authorization password file: /usr/local/WowzaMediaServer/conf/connect.password
    INFO application app-start _definst_ live/_definst_
    INFO session connect-pending ******IP****** -
    INFO server comment - size: 3
    ERROR server comment - ModuleOnConnectAuthenticate.onConnect: java.lang.ArrayIndexOutOfBoundsException: 1
    INFO session connect *****IP***** -
    INFO session disconnect 987715802 -
    INFO application app-stop _definst_ live/_definst_
    INFO server comment - ModuleStreamRecord.onAppStop

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

    Default

    Add the querystring to the connection part, like this:

    rtmp://wowza/application?user&pass/streamname

    Richard

Page 1 of 3 123 LastLast

Similar Threads

  1. About rtmp authentication url
    By kakaza in forum General Forum
    Replies: 0
    Last Post: 01-30-2013, 11:35 AM
  2. RTMP authentication, RTSP authentication => problem
    By nvanhaute1 in forum Server Administration Discussion
    Replies: 4
    Last Post: 11-09-2011, 03:01 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
  •