Fail to load video due to SecurityError - occurs on phaser example
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 40.3k
- Forks
- 7.2k
- PR merge metrics
- No merged PRs in 30d
Description
On the below Phaser exmaple, the video fails to load. I am also experiencing the same problem on my project.
The browser is Chrome on Windows
https://phaser.io/examples/v3.85.0/game-objects/video/view/play-video
SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The video element contains cross-origin data, and may not be loaded.
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 Phaser video example at the linked URL in Chrome on Windows and inspect the video source and browser security error. Trace how the example loads the video before the WebGL texImage2D call. Done means the example loads its video without the reported cross-origin SecurityError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100