videojs / videojs-youtube

YouTube playback technology for Video.js
1.12k stars 548 forks source link

Video Never Starts After Clicking Play Button During Buffering Before Cue Completion #618

Open GrayChoi opened 6 months ago

GrayChoi commented 6 months ago

Hello,

I've encountered a persistent issue with the videojs-youtube plugin where videos fail to start playing if the play button is clicked during the buffering phase and before the video is fully cued. Instead of transitioning to the playing state, the video remains stuck in a perpetual loading state, with the loading animation displayed indefinitely.

Steps to Reproduce:

  1. Start loading a video using the videojs-youtube plugin.
  2. Click the play button during the initial buffering stage, before the video has fully cued.
  3. Observe that the video does not start playing and remains in the loading state.

Expected Behavior:

The video should either start playing from the buffered point or continue buffering until enough data is available for playback to commence.

Actual Behavior:

The video remains in a loading state indefinitely, with no transition to the playing state, regardless of how long one waits.

Environment:

I believe this issue significantly impacts the user experience, as it effectively prevents playback under specific conditions which are not uncommon. Any insights or fixes regarding this problem would be greatly appreciated.

Thank you for your time and assistance.

jmossedge commented 2 weeks ago

am also experiencing this with latest everything. it seems that if the page fully loads before interaction, it's good. if you try to interact before it's fully loaded, this occurs. and there's no way for a user to know (or as far as I can tell, for the code to easily test for this condition)

off the top of my head, a workaround might be some method of just disabling interaction until full load is complete, but that wouldn't be a great user experience either