Broadway
Broadway copied to clipboard
Is there an On End Event
I understand that broadway is only a mp4 decoder, and player.js basically just puts the frames on a canvas.
However I need to figure out when the mp4 stream is finished. I know I can listen to the stats counter, and after x amount of time of no new updates I can call it finished. However I'm concerned I may prematurely end an animation if there is a performance hiccup or something.
Is there any function I can bind to or any event that will give me a solid conclusion when the last frame is rendered?
i think we need a sophisticated mp4 reader. i think the one in this project is kinda rough. could you spare some time and implement one?
What features do you need the mp4 reader to have? If I can get a successful end event I can implement a seamless loop.
Also as long as the video has a constant frame rate, throttling playback to match it should be easy enough.
However writing a way to seek to a frame would be too much for me atm. So I guess it depends what you're looking for.