Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play event is delayed on video startup #789

Open
luwes opened this issue Dec 2, 2021 · 1 comment
Open

play event is delayed on video startup #789

luwes opened this issue Dec 2, 2021 · 1 comment

Comments

@luwes
Copy link
Contributor

luwes commented Dec 2, 2021

Expected Behavior

When using MediaSource that the play event is fired quickly after calling the play() method on the API or when the user clicks the play button in the player.

Actual Behavior

The play event is fired after a delay. It's preloading segments first it looks like, when that is resolved play and playing is fired right after each other. I patched it here to get a correct video startup time in the benchmark, https://github.com/playerxo/playerx/blob/26603717fa7fa99cd8b9a59d8e095abf81fea54d/src/playerx/video-shim.js#L79-L87

Steps to Reproduce

  1. Go to https://player.vimeo.com/api/demo
  2. Open web inspector, throttle network to 3G
  3. Start playback and check the event logs, play event is only fired after the video started playing.

The play event should ideally be fired before bufferstart.

@vidiot1969
Copy link

We have noticed issues like this with low bandwidth. Will check your patch, thnx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants