Announcement

Collapse
No announcement yet.

how to protect rtmp links ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to protect rtmp links ?

    any way ?? to protect RTMP iptv server or RTMP links ?

  • #2
    that's easy friend !!

    read this post carefull .....
    I'll show you this on easy way.

    in your nginix.conf put : notify_method get
    Like this:

    Code:
    rtmp {   server {   listen 1935;   notify_method get; . . .
    then in your application put this: on_play http://localhost:8080/on_play;
    like this:

    Code:
     application live {   live on; on_play http://localhost:8080/on_play; . . .
    In server put this

    location /on_play {
    }
    Code:
    http {   access_log /var/log/nginx/access-streaming.log;   error_log /var/log/nginx/error-streaming.log;   server {   # in case we have another web server on port 80   listen  8080;   location /on_play {  if ($arg_st = "myUser") {   return 200;   }  return 501; } . . .
    WARNING
    on your rtmp links need to add ?st=myUser like this


    Tip

    rtmp://xx.***.***.***:***x/live/chname?st=myUser


    This is simple way, you can do this in a php script whit mysql and create your own system for users.
    I'll later on add an example whit php use ...

    Best regards to all
    ------------------------------------------

    1
    D
    o Not Send Me PM For Support
    .
    2 Do Not Send Me PM For ASK Test.
    3 Ask Your Question On The Forum.

    ------------------------------------------
    My Email is :
    mspauljayo[at]gmail.com
    ------------------------------------------


    Comment

    Working...
    X