-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video/audio node plays audio when preloading #86
Comments
Thanks @Sacharified that certainly doesn't look like intended behaviour. We're almost ready to merge the regression testing. Can jump on this as soon as that's in. Pete |
I've tracked this issue down to this function: https://github.com/bbc/VideoContext/blob/master/src/videoelementcache.js#L28 The first time you call This also impacts videos, causing the elements to start playing at 0. When the context's I'm not sure what the purpose of this Also it's quite difficult to reproduce this in the code playground because the whole thing is reconstructed when you click the play button. If you load the example in my first post and call |
@Sacharified @PTaylour |
If I'm remembering correctly the There is a wider question here about how to support mobile without complicating the core videocontext library. As an interim solution it seems sensible to revert 5137bee, as you suggest @tinybug Would seem likely that this would reintroduce #54
It could be that the |
Confirmed that this is fixed in 0.53.1 - closing. |
When constructing an audio or video node and using the
preloadTime
parameter, the media begins playing in the background in order to load content. If the media has audio, this audio will begin playing out loud immediately (or presumably when the context'scurrentTime
reaches the media's sequencedstartTime
-preloadTime
).This effectively makes preloading useless if you are preloading assets with audio.
You can reproduce the issue with the following code:
You are be able to hear audio before 10 seconds, even though there is no sequenced audio for that time.
The text was updated successfully, but these errors were encountered: