문제

I have one video object and 3 thumbnails which, when clicked, will play different video files. What is the best practice for this situation?

Currently I have one net connection, one net stream, and one video object. When a thumbnail is clicked, I just say ns.pause(), then ns.play(video2.flv). This sort of works, except if I play video1.flv, then video2.flv, then play video1.flv again, it gets all scrambled - the video plays but is chopped up with ugly lines across it.

도움이 되었습니까?

해결책

calling ns.close() before ns.play() should reset the stream for another use.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top