0

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.

sol
  • 601
  • 2
  • 10
  • 16
  • ns.close() seems to help. I'd still like to hear ideas on best practices for this situation though. – sol Sep 07 '09 at 21:51

1 Answers1

1

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

Simon Groenewolt
  • 10,607
  • 1
  • 36
  • 64