videojs / video-js-swf

Custom Flash Player for VideoJS
http://videojs.com
Other
336 stars 312 forks source link

Player when scrubbing after video ends #200

Closed alex-phillips closed 7 years ago

alex-phillips commented 8 years ago

After the video ends, if the user scrubs back without replaying the entire video the pause state was never correctly set and required the user to hit the pause button twice to get the JS and ActionScript back in sync.

This addresses and should fix the issue here: https://github.com/videojs/video-js-swf/issues/199

alex-phillips commented 8 years ago

Yes, it's a one-liner. My editor must have removed whitespace on save.

gkatsev commented 8 years ago

It happens. ?w=1 helped find out the change. Does this happen only with RTMP video?

alex-phillips commented 8 years ago

I believe so. If you are running an mp4 for example, when you scrub back, the player stays paused so there's no need for a state change, but the RTMP stream triggers a play event (I think that's just how the tech works).l