如何在 FlowPlayer 中使用安全流式传输?
我正在使用 FlowPlayer 使用 Amazon EC2 实例从 Wowza 进行 RTMP 流式传输,以存储在 Amazon S3 存储桶中的文件。我希望流媒体是安全的。在 Flow Player 中我们可以实现这一点。 安全流媒体
如果我们在 JavaScript 中包含秘密令牌,如图所示,它可以任何人都可以轻松阅读。所以它不太安全。提到的另一种方法是编译 FlowPlayer 源文件。我找不到任何与此相关的教程。谁能告诉我要编辑哪个文件以及要编辑什么?
I am using FlowPlayer to stream using RTMP from Wowza using Amazon EC2 instance for the file stored in Amazon S3 bucket. I want the streaming to be secure. In flow player we can accomplish that. Secure Streaming
If we include the secret token in javascript as shown, it can easily be read by anyone. So it is not so much secure. Another way mentioned is to compile the FlowPlayer source file. I couldn't find any tutorial regarding this. Can anyone tell me which file to edit and what to edit ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编译 flowplayer 一点也不简单。他们在这里有详细的说明:
http://flowplayer.org/documentation/developer/development-environment.html
他们不会方便地告诉您对令牌进行硬编码的内容和位置。我还在想办法。我花了 4 个小时才完成环境设置。
你基本上需要 java JDK(即使你使用的是 x64,也需要 32 位)、ant 和 Flex 框架。
如果我找到编译令牌的位置,我会通知您。
因此,一旦编译工作完成,您所需要做的就是更改 securestreaming 源中的现有令牌字符串,该字符串位于以下文件中:
src\actionscript\org\flowplayer\securestreaming\Config.as
Compiling flowplayer isn't simple at all. they have detailed instructions here:
http://flowplayer.org/documentation/developer/development-environment.html
They conveniently do not tell you what and where to hardcode the token. I'm still trying to figure it out. Took me 4 hours to get the environment setup.
you basically need java JDK (get the 32bit even if you're on x64), ant, and flex framework.
I'll let you know if I find where to compile the token.
K so once you get the compilng working, all you need to do is change the existing token string in your securestreaming source which is located in the following file:
src\actionscript\org\flowplayer\securestreaming\Config.as