NetStream.videoSampleAccess 的工作示例?
我目前正在使用 Stratus 构建一个基于浏览器的应用程序。到目前为止,一切都运行良好,我了解这一切是如何运作的。
问题是当我尝试使用 BitmapData.draw() 操作传入远程视频流的像素数据时。发生的情况是我收到沙箱安全错误,这是可以理解的。
为了解决这个问题,我想使用新的 NetStream.videoSampleAccess
属性,但我似乎无法让它工作。无论我在哪个 netstream 对象上设置该属性,或者在何处设置它,我都会收到相同的错误消息。
NetStream
对象无效。这可能是由于NetConnection
失败造成的。
有趣的是,我可以通过使用以下技巧来实现相同的功能:
NetStream.send("|RtmpSampleAccess",true,true);
有人有 NetStream.videoSampleAccess 的工作示例吗?或者知道为什么我会收到此错误?
PS:如果您认为您以前见过这个问题,我也在 Adobe 论坛中发布了这个问题。我希望这里的社区比我在 Adobe 发布此内容的小型子论坛更加多样化。
I'm currently building a browser-based application using Stratus. So far everything is working fine and I understand how it all works.
The problem is when I try to manipulate the pixel data of the incoming remote video stream using BitmapData.draw()
. What happens is that I get a sandbox security error, which is understandable.
To solve this I wanted to use the new NetStream.videoSampleAccess
property, but I just can't seem to get it working. It doesn't matter which netstream object I set the property on, or where I set it, I get the same error message.
The
NetStream
Object is invalid. This may be due to a failedNetConnection
.
What's interesting is I can achieve the same functionality by using the following trick:
NetStream.send("|RtmpSampleAccess",true,true);
Does anyone have a working example with NetStream.videoSampleAccess
? Or any idea why I could be receiving this error?
PS: I have also posted this question in the Adobe forums if you think you've seen it before. I'm hoping the community here is a little more varied than the tiny sub-forum I had to post this in at Adobe.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论