Videosphere not working with Cordova/Capacitor JS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
I've created a simple vr app using Cordova following the guidelines on your website but when I click on the VR button I get this error:
webvr-polyfill.js:382 Uncaught (in promise) TypeError: Failed to execute 'exitFullscreen' on 'Document': Document not active
at O (webvr-polyfill.js:382)
at webvr-polyfill.js:3039
at new Promise (<anonymous>)
at w.v.requestPresent (webvr-polyfill.js:2953)
at HTMLElement.value (a-scene.js:337)
at i.onEnterVRButtonClick (vr-mode-ui.js:72)
at bind.js:12
at HTMLButtonElement.<anonymous> (vr-mode-ui.js:193)
and then all I see is a grey screen behind the VR canvas. When I try to exit VR mode the video disappears altogether.
- A-Frame Version: 1.2.0
- Platform / Device: Android
- Reproducible Code Snippet or URL:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the A-Frame 1.2.0 case on Android with Cordova or Capacitor, using the reported VR-button flow. Trace the failure through webvr-polyfill.js, a-scene.js, and vr-mode-ui.js, including the exit path. Done means entering VR no longer produces the Document-not-active error or a grey screen, and exiting does not make the video disappear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100