Closed mcranston18 closed 9 years ago
you will have to program the auto play logic yourself broadway.js is only a decoder that gives you the video frame by frame
It is entirely possible, but in my initial tests it doesn't achieve the FPS necessary (on an iPod Touch) to play a video. You'd also need to handle audio separately.
@alastaircoote would you be willing to post any code you've tried in experimenting with this?
@mcranston18 I'm afraid I haven't experimented much beyond using the demo page in this repo. I've played around a little more with JSMPEG - an MPEG1 decoder. File sizes are far larger, but it performs much better on mobile devices (presumably because the compression is less complex).
@alastaircoote thanks for the link! I appreciate the feedback.
Mobile browsers do not support the
autoplay
feature of HTML5 video.This will autoplay using non-mobile browsers but not on mobile browsers.
Is it possible to decode the MP4 and then autoplay it using Broadway?