Skip to main content
Participant
March 5, 2012
Question

How to prevent user publish stream to FMS

  • March 5, 2012
  • 1 reply
  • 1206 views

Hi all,

I've installed Flash Media Server and send stream to it use Flash Media Live Encoder via rtmp://mydomain.com/live. And on my website, I've embed code to play this live stream via rtmp://mydomain.com/live. All ok!

But, any user can install Flash Media Live Encoder and connect to my FMS, publish his/her stream (because url to publish and view is same)

My question is: how to prevent end-user publish stream to my FMS, only allow end-user view my live stream?

    This topic has been closed for replies.

    1 reply

    Participant
    March 6, 2012

    From the Flash Media Live Encoder FAQ:

    How can I enable authentication on Flash Media Server?

    Download the Authentication add-in and install it on Flash Media Server.

    NhimYeuAuthor
    Participant
    March 6, 2012

    Thank for your reply, but, if end-user use another encoder software (not use FMLE), they can publish stream to FMS?

    For waiting next reply, I'll use Authentication add-in. Thank you, again.

    March 6, 2012

    Yes, other encoders will be able to publish if you haven't implemented other security measures.

    You -could- use a combination of allowed domains and SWF verification to block other encoders, but it's not a bulletproof solution.

    Another option is to require a password of some sort as a query variable on the rtmp url, and validate the value of that variable on the server side (assumes you are using FMS interactive, enterprise, or development... you can't do server side scripting on FMS streaming server)