
How do I tell when live stream has begun?
Hi,
I have a question of how to do something via the javascript api. We have a list of playlist items and I would like to be able to query given the playlist items for when they are due to start.
For example:
var links = [];
links.push({file: "http://wowzaprod3-lh.akamaihd.net/z/5df2507d_1@142171/manifest.f4m" });
links.push({file: "http://wowzaprod3-lh.akamaihd.net/i/5df2507d_1@142171/master.m3u8" });
var playerInstance = jwplayer("videoPlayer").setup({
playlist: [
{
image: "https://news.gov.bc.ca/Content/Images/Live_Webcast.png",
sources: links
}
],
....
If I have the setup above how would I interrogate the two playlists and check when they are due to start. Currently when I go to either of the URLs they aren't available. If I was to poll for when they become available would that tell me when they are ready to start playing? Or should I use the callback: .on('beforePlay')
Thanks,
Shane