phaserjs / phaserjs/phaser

Fail to load video due to SecurityError - occurs on phaser example

Open
#7,026 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

📑 Example
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.