문제

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