| Summary: | Video texture not updating after entering WebXR mode | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | filipesnetopires |
| Component: | WebXR | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Blocker | CC: | connell, dino, electroteque, thorton, tr, webkit-bug-importer, Yeison.lopez1028 |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | All | ||
| OS: | Unspecified | ||
|
Description
filipesnetopires
2023-08-16 08:16:05 PDT
I've discovered this problem, video immediately goes to paused when launching to XR. But when I exit, I get no video playback. In Vision 1.0. In Vision 1.1 there is no webgl rendering at all. Test video here https://electroteque.org/plugins/videojs/vrvideo/ While the video is paused. There seems to be no VR controller device support in the simulator to click to play. So because the video is paused there is no video texture updating. In the webxr session start event, forcing video playback works. actually you can't detect what platform visionOS is. navigator.platform reports Ipad. So have to check if it's Ipad in WebXR and force play. pseudo code. the platform detected goes between Ipad and MacIntel.
onSessionStart() {
//force play for visionOS
if (this.isIpad) {
// this.video.play();
const handlePaused = () => {
this.video.removeEventListener("pause", handlePaused);
this.video.play();
};
this.video.addEventListener("pause", handlePaused);
}
}
Hi. We have tried the suggested workaround but still finding issues such as permissions and the video simply not playing. Will there be a fix or suggested workaround for this that works consistently?. Thank you. |