Hi favo!
Quote:
Originally posted by favo
yep, cuz there is one problem when playing a stream with real-player .. it plays the current selected stream in ALL embeded objects of the site .. and when the users leaves the current tv on the page .. it will stop playing the stream in the popup too ... thats why i have started to do that .. and on media-player it will play the same one twice .. when i will send a stop to the object via javascript it will stop both streams (in popup and the site) on real-player and on media-player it will work
any ideas how to solve this problem?
|
If you use embed, you can assign a name:
Code:
<embed autostart="false" name="music" src="some.stream" width="300" height="200"></embed>
<a href="javascript:document.embeds['music'].play()">play</a>
Doing this, you should be able to start or stop the stream on the popup and the one on the site seperately. Whenever someone hits "play" or "stop", just what is requested, will be done.
Of course the both need to have different names.
This works in NS 3.0 and IE 5.0. But since you deal with streams and movies, fast net access and the latest software is not an issue here.
_till