Skip to content

Fix #1447 - Wait for data before updating element playbackRate

Vinay Rosenberg requested to merge github/fork/bbc/seekDuringBuffer into development

Created by: JontyUsborne

When the player buffers during playback, stream is stalled. Seeking removes the stalled stream, and updates the playbackRate. However, setPlaybackRate was being called before enough data was loaded to play (ready state 3, "HAVE_FUTURE_DATA").

Now, if readyState<3, an event listener is added to update playbackRate once "canplay" is triggered.

Similar issue when trying play/pause during buffer is fixed by #1616.

Merge request reports