Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
759 stars 97 forks source link

[Chromium Beta] Video Playback Issue #1386

Open domexie opened 2 months ago

domexie commented 2 months ago

Configuration

Wolvic version: 0.9 (Chromium) Wolvic build ID: 315

Hardware: Meta Quest 3

Steps to Reproduce

  1. Start watching a video on bilibili.com.(for example https://www.bilibili.com/video/BV1xE421u7fh)
  2. Video may fail to load, switch to AVC and refresh the page, then video will play. image image
  3. Bug Reproduced

Current Behavior

As video plays, Quest 3's screen starts to turn off and on by itself (it's not just a software black screen, as the backlight also turns off). I've noticed that after a segment of a video buffers, replaying that segment does not cause the screen to turn off and on by itself. However, when I play a new video or crank the progress bar to a position that hasn't been played before, the aforementioned issue of the screen turning off and on occurs again.

Pressing the Oculus button and opening the system main menu does not prevent the display from continuously restarting. Only exiting Wolvic or stop playing videos works. I suspect that the entire Android display driver is temporarily crashing due to Wolvic.

I conducted an internal screen recording on the Quest 3 while it was experiencing continual screen restarting. Interestingly, in the internal recording, video playback appeared perfectly normal. However, when I used Scrcpy to record the screen image via ADB to my computer, I noticed that the entire field of view would occasionally freeze, with the frequency matching that of the screen restarts.

By the way, the Gecko version works perfectly.

Expected Behavior

AV1 and HVEC playback should work, and the screen shouldn't blink.

Possible Solution

Context

Error Logs and Stack Traces

``` [logcat.txt](https://github.com/Igalia/wolvic/files/15144962/logcat.txt) ```
svillar commented 2 months ago

Thanks for the report. Yeah we are aware of that issue. It does only happen in the Quest3. That's why we suspect is a platform issue. The exactly same APK does not show that behaviour in the Quest2 for example. So it must be something related to the codecs shipped in the Quest3. Some other people reported similar issues in other apps.

weller0 commented 1 month ago

Hi @domexie chromium_aar怎么打包导入?Wolvic Chromium0.9版本要如何打包,能麻烦给一个说明吗?谢谢

svillar commented 1 week ago

Today I found something interesting, everytime a glitch happens we get something like this in the logs

NativeWindowResized: 0xb400007af6f5a140 -- 0xb400007a9a622010

Checking now...

svillar commented 1 week ago

An update on the topic:

@domexie could you confirm that? I mean, that v66 is much better