Wowza Community

playing different streams using the api

Is there an javascript instruction whereby one can load different videos that users click on?

thanks,

Alan Costello

I think I should do it this way - make a new instance with a new:

“sourceURL”:“https%3A%2F%2F%5Bwowza-ip-address%5D%3A1935%2Fvod%2Fmp4%3Asample.mp4%2Fplaylist.m3u8”

Each new stream/recording needs a new instance of the player.

I guess that is correct?

Hope so!

Alan Costello

Hi,

You can have a script on your page that can dynamically change the playback URL and load it into your player instance. The method on how to do this would depend on what player you are using. Do please refer to your player documentation.

Michelle