I'm using flash media server and trying to record the stream but having a problem as I've outlined below. Thanks for taking the time to read this post.

How do I detach my camera from one stream and attach it to a new stream? What I'm trying to do is record the camera stream for 10 seconds and then play it live on a different stream..I try to netstream.close and then netstream.attachCamera(cam0) but it won't let me attach it to the second new stream. What's wrong?

有帮助吗?

解决方案

You dont have to close the stream. You can use the attachCamera method with a null argument.

netstream.attachCamera(null);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top