Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序正在向 AMS 发送实时视频,因此Netstream.attachCamera(camera)我可以NetStream.publish("myStreamingURL', "live");通过使用方法停止 netsteaming来发送实时视频NetStream.close(),现在我的问题是如果 NetStream 已停止其发布流媒体,我想停止我的实时视频。如何检测 NetStream 是否已停止发布数据?
Netstream.attachCamera(camera)
NetStream.publish("myStreamingURL', "live");
NetStream.close()
尝试添加一个监听器NetStatusEvent并在监听器中检查event.info.code.
NetStatusEvent
event.info.code
NetStatusEvent 代码的完整列表