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

Undocumented / inconsistent cross-browser values for percent and duration when streaming #847

Open
acoulton opened this issue Aug 13, 2022 · 0 comments
Labels
Live Issues related to Live video playback

Comments

@acoulton
Copy link

Expected Behavior

That there should be some consistent way to identify during playback that the viewer is watching a livestream rather than an on-demand video.

I note that https://developer.vimeo.com/player/sdk/reference#timeupdate does not document what these values should / might be for a livestream but I would have expected them to have some defined behaviour.

Actual Behavior

When viewing a livestream, the timeupdate event gives different percent and duration values depending on the browser.

Browser seconds duration percent
Current Chrome, Edge, Firefox time elapsed since start of stream Infinity (the JS constant) 0
Safari 15 (possibly others) " " " 47721.859 {seconds} / {duration}

The value 47721.859 doesn't appear to correlate to anything in the event setup / schedule, as far as I can see it is just a consistent but arbitrary number.

Steps to Reproduce

During a livestream:

player.on(
   'timeupdate',
  ({seconds, percent, duration}) => console.log(seconds, percent, duration)
);

Observe that the values reported to the console are as above.

@bdougherty bdougherty added the Live Issues related to Live video playback label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Live Issues related to Live video playback
Projects
None yet
Development

No branches or pull requests

2 participants