Closed ddorwin closed 7 years ago
We would need to reset those when load() is called as well, in case the video element is reused.
I'll use the following language copied from https://html.spec.whatwg.org/multipage/embedded-content.html#video:
When the current playback position changes such that the last frame rendered is no longer the frame corresponding to the current playback position...
followed by the text:
the user agent shall set the waiting for key value to
false
and make the encrypted block queue value empty.
I'll follow that with a note that this applies to the load and seeking algorithms.
PR #348.
I ended up using different text since the text above was specific to video and would also trigger on normal playback.
The internal waiting for key and encrypted block queue values are initialized when the HTMLMediaElement is created:
But they are not cleared in other conditions. Seeking is the most obvious. Are there others?
@cpearce @foolip