red5 media server and protect video from being embeded?

久未见 提交于 2019-12-02 04:43: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

To prevent the video from being embedded, don't use an embeddable player (i.e. if you are using a commercial player, disable the embedding option). If you don't want them to find the stream then embed the video in their own player, you have to either hide the URL of the movie. There are a number of ways to do this. Most popular is by using a php file to output the video via readfile. you could also use symbolic links or some similar solution.

re: encryption, there are some DRM solutions like iTunes uses, but I assume that if you are asking here that may be overkill for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!