This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
waiting
event is being fired after ended
#38
Labels
waiting
event is being fired after ended
#38
This is a hot issue if anyone's able to give some quick feedback.
Example: http://jsfiddle.net/heff/N8Zs5/
(The spinner will show after the video has ended)
Reported in videojs/video.js#708
My best guess is the cause is the
NetStream.Buffer.Empty
event handler.It would make sense that this would fire after the video ends and the buffer is empty, but we shouldn't be firing the
waiting
event if we're not actually waiting for more data. I don't understand the netstream operation enough to dig much deeper and understand the best way to fix this.This is a relatively new issue, though it could be caused by the fact that the player no longer manually seeks back to zero when the video ends.
A quick work around in JS layer would be to check the 'ended' property and block waiting events that happen while ended, except that the ended property in HTTPVideoProvider is set to always return false. I'm interested to know if there's a reason for that, because the other providers (Audio/RTMP) will return true when ended.
https://github.com/videojs/video-js-swf/blob/master/src/com/videojs/providers/HTTPVideoProvider.as#L180
The text was updated successfully, but these errors were encountered: