-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOMException not catched #55
Comments
It's a good idea and I think this relates to discussion @ #47. This library has used WebM files in the past and I aim to resurrect that usage in an upcoming release.
I think this is a good idea. Provide two video sources and let the browser pick one. Regarding #47 I think the WebM video should not include an audio track. I already created the perfect WebM video file with no audio track to use a while ago btw ;) From mathiasbynens/small#10:
I will continue looking in to this. |
Fixed by #58. This will now be released as |
Great! Thanks a lot! |
Hi,
When running a webpage using NoSleep in the latest Chromium build for Android, I get a
Which is never caught. I tracked it down to https://github.com/richtr/NoSleep.js/blob/master/src/index.js#L37 where it should be caught on
play
. I guess actually theenable
method might return theplay
Promise so that user can deal with issue the way they want, no?For the deeper underneath issue raising this exception, it seems Chromium on Android has no support for MP4 video files (not sure whether Chrome does). Replacing https://github.com/richtr/NoSleep.js/blob/master/src/media.js by a WebM converted video works well!
Maybe NoSleep could provide the source file in both MP4 and WebM and let the browser play the best fitted one?
Thanks!
The text was updated successfully, but these errors were encountered: