-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Videos do not render in Firefox on Android #4213
Comments
Oh... this is a serious problem. I would take this ticket unless someone already started to tackle it. |
I confirmed the issue. I reproduced this problem on Android Firefox Nightly version 90.0a1 on Samsung Galaxy S8+. And also confirmed the videos play on Android Chrome. |
I did remote debugging and saw the CORS error on Android Firefox Nightly.
But I also see this error Android Chrome, Desktop Chrome, and Desktop Firefox but videos play on them. I guess Android Firefox CORS is more restricted? I'll keep investigating more... Update: I talked to @netpro2k about the CORS error but the error may be unrelated to video stuffs. |
TLDR: The current Android Firefox seems to have a problem to upload video (mp4, webm, and maybe other formats except for ogv) to texture with As I wrote in #4224 (comment), the CORS error doesn't seem to be related to the video play problem. I investigated the problem again and found the following error messages in the console with remote debugging.
I first thought the messages were originally caused by the CORS error but as I mentioned the CORS error doesn't seem to be related the video problem. So it seems to simply fail to upload the video data to texture with I sought simpler examples on which I can reproduce the problem and found the Three.js examples. https://threejs.org/examples/webgl_video_kinect.html In this example, I see the same https://threejs.org/examples/webgl_materials_video.html The reason why the video plays seems the format is ogv. The former one uses mp4 and webm. (The latter example requires a user gesture first while the former one doesn't, so I first thought the reason can be the user gesture but the former one still couldn't play the video even though I added a user gesture request.) I tried to place ogv video in Hubs room and it plays on Android Firefox. So my conclusion is the current Android Firefox seems to have a problem to upload video (mp4, webm, and maybe other formats except for ogv) to texture with If it will take time to resolve this problem, we might want to convert videos to ogv for Android Firefox on the fly as workaround if possible. |
I reported the problem to Android Firefox mozilla-mobile/fenix#19399 |
I can confirm that the webgl_materials_video example breaks in Firefox Android if you only include the sintel.mp4 video file. |
Yeah, I confirmed that too. ogv video texture seems to work fine even on the current Android Firefox so perhaps workaround we can do on our ends so far may be using ogv. |
Also confirmed the issue with this simpler webgl video test, just to make sure it wasn't specific to three.js. https://webglsamples.org/video/video.html I think using ogv is not viable since it would not be feasible to convert video on the fly at scale. |
I made a minimal test reproducing the problem and shared it with Android Firefox and Geckoview teams. https://takahirox.github.io/texImage2D-gl-test/index.html
Yeah, it isn't probably a good option. But I couldn't come up with any other workarounds for now. The best solution is the problem will be fixed on Android Firefox end. I will try to work closely to Android Firefox and Geckoview teams. |
Sounds great. Thanks Takahiro! |
The Fenix bug was migrated to https://bugzilla.mozilla.org/show_bug.cgi?id=1709726 |
I actually cannot reproduce this anymore on my Galaxy S21 with Firefox 99. I'm not sure why it's working in Hubs, because some of the test cases here still fail to work in Firefox. So there is probably still a bug in Firefox, but we seemed to have worked around it somehow. Perhaps a three.js update fixed it for us. I'll close this, because I'm pretty sure Hubs is not affected anymore, but feel free to re-open someone else can repro. |
Description
Videos seem to play, but do not actually render in Firefox on Android. They just display as a black rectangle. This appears to be the case with all video formats.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Videos should render in Firefox on Android!
Hardware
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: