red5 media server and protect video from being embeded?

后端 未结 2 1703
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-24 11:52

I\'m trying to protect my videos the most possible way, so I know putting them up on a red5 media server will make them streaming so the flv file won\'t be downloaded to users c

2条回答
  •  时光说笑
    2021-01-24 12:33

    To secure your streams you can edit the file: red5-web.properties (in $red5/webapps/$your-app/WEB-INF/)

    webapp.virtualHosts=*,localhost, 127.0.0.1
    

    webapp.virtualHosts defines the IP/domains that are allowed to connect to your Red5 application.

    So if your application is hosted on myserver.com, and you want only SWFs that are loaded from myserver.com to be able to connect to your streams then you can configure red5-web.properties.

    AFAIK: The "security" here is that every SWF sends automatically to the RTMP server a IP/Domain where it has been loaded from. So with some motivation you could build a RTMP client in Java or C++ that simulates connecting from another domain.

    However, for simple scenarios, for example for protecting your stream from being embeded with some FLV player in another website, this should already help.

    Sebastian

提交回复
热议问题