Wowza Community

How to destroy an existing instance so multiple streams do not play simultaneously?

I am making new instances of

WowzaPlayer.create(‘playerElement’,

etc

etc

I end up with all videos playing at once. How do I destroy the existing one before making a new one?

Thanks,

It was happening when two streams were called in quick succession, so i put something to detect that situation in the code.

My problem was calling the channel within the software twice quickly, not people clicking. It should be built into the player, though.

I prevented calling the new stream too quickly by writing some code - I couldn’t find a way to stop that behavior in the wowza player.

ys

I’m having the same issue, you have no way to do yet?

var myPlayer = WowzaPlayer.get(‘playerElement’);

if (myPlayer != null) {

myPlayer.destroy();

}

after destroy, I still continuously receiving the data…