bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

playbackRate only update AUDIO/VIDEO after changing currentTime #29

Closed barata0 closed 7 years ago

barata0 commented 7 years ago

When ctx.playbackRate++; The currentPosition is increased properly but the audio/video do not speed up.

Work around: The playbackRate only changes the VIDEO speed after ctx.currentTime = ctx.currentTime;

Ps. Tried with the video Big_Buck_Bunny_4K.webm.160p.webm

emshotton commented 7 years ago

Hi!

Thanks for finding this one. It looks like it was caused by each individual nodes playbackRate not correctly being marked as being updated when the global playbackRate is changed.

I've pushed a fix for this now (tagged and published to npm as v0.34.1).

I'll close this issue for now, but please feel free to reopen it if the issue persists.

Kind regards, Matt