When videosphere source changed dynamically, black flashes appear
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
When videosphere source changed dynamically using JS, black flashes appear when the source is changed or when currentTime is set for all sources except for the source that originally belonged to the videosource.
<a-videosphere id="videosphere" src="#scene1" autoplay rotation="0 180 0"></a-videosphere>
</a-entity>
</a-scene>
var videosphere = document.querySelector('#videosphere');
var video = document.querySelector(videosphere.getAttribute('src'));
video.currentTime = video.currentTime + 3; // will not have a black flash
videosphere.setAttribute('src', '#scene2');
var video = document.querySelector(videosphere.getAttribute('src'));
video.currentTime = video.currentTime + 3; // WILL have a black flash
videosphere.setAttribute('src', '#scene1');
var video = document.querySelector(videosphere.getAttribute('src'));
video.currentTime = video.currentTime + 3; // ONCE AGAIN WILL NOT have a black flash
- A-Frame Version: 0.2.0
- Platform/Device: Firefox Nightly 48.0a1
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
Reproduce the supplied A-Frame example in Firefox Nightly using the videosphere source changes and currentTime updates for scene1 and scene2. Start at the videosphere source-switching behavior; done means changing sources or seeking no longer produces black flashes across the listed videos.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100