
onMeta not firing
We are continuously appending to an HLS playlist to create a seamless video experience. I need to know when the current video that has been appended to the playlist is about to end so I can fire custom JS events.
We tried using onTime() but when playing a continuous live stream it only seems to fire when using HTML5, not Flash fallback.
We then had the idea of embedding timed metadata near the end of the video and using the onMeta to watch for it, unfortunately the event will not fire. I tried with a video I segmented using mediafilesegmenter with custom ID3 metadata and it didn't work, so I assumed I did something wrong. Then I found a sample stream on developer.apple.com that said it had timed metadata every 5 seconds. Here:
https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8
The JS code I'm using is simple:
jwplayer().onMeta(function(e) { console.log(e) });
onMeta() is NOT firing every 5 seconds...so my questions are:
Am I using onMeta() incorrectly?
Is there a way to add timed metadata that onMeta() WILL respond to?
Is there a better way of knowing when a current clip within a continuous stream will end, such as getting information about what TS segment JWPlayer is currently playing?
Thanks for your help!