richtr / NoSleep.js

Prevent display sleep and enable wake lock in any Android or iOS web browser.
MIT License
2.23k stars 382 forks source link

Webm file is invalid for playback in Firefox for Android #63

Open Phyks opened 5 years ago

Phyks commented 5 years ago

Hi,

Since the recent addition of webm file, NoSleep is no longer working on my Android phone with Firefox. Tested and confirmed with the examples.

Expected Behavior

Webm video should play back and NoSleep should work.

Actual Behavior

Webm video is considered somehow invalid by Firefox for Android and not played back. MP4 file is working fine. If I use a WebM-encoded version of the MP4 file (encoding done with default "webm" profile in VLC), it works.

It seems to be working fine in Chrome/Chromium for Android though.

Best,

gwynm commented 5 years ago

I had the same problem, and have implemented the same fix (reconvert the mp4 to webm) as a fork. It works for me on Firefox/Android now.

pascalheraud commented 5 years ago

is there a plan to make a release to include the fix above by @Phyks ?

pascalheraud commented 5 years ago

By the way, it's a regression since it works fine with nosleep 0.7.0 and the last firefox (67). I tested same code against 0.9.0 and the phone does stay on.