views:

438

answers:

1

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.

+1  A: 

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

Simon Groenewolt