muxinc / elements

Custom elements for working with media in the browser that Just Workâ„¢
https://elements-demo-nextjs.vercel.app
MIT License
248 stars 45 forks source link

Bug: video (but not audio) playback freezes and seeking to middle of video and then rewinding back a little #940

Open pbv-public opened 2 months ago

pbv-public commented 2 months ago

Is there an existing issue for this?

Which Mux Elements/Packages does this apply to? Select all that apply

mux-player-react

Which browsers are you using?

Chrome, Safari, Firefox, Edge ("Edgeium"), Chrome Android, Safari on iOS

Which operating systems are you using?

Windows

Description

We've noticed an issue with video playback. It seems to affect multiple platforms (Mac/PC, Chrome, etc.). Specifically, the audio keeps playing but the image stays frozen.

Reduced test case

No response

Steps to reproduce

  1. View any of the videos we've uploaded like https://pb.vision/video/uoitcltlpq9s
  2. Press the "Rally #34🔥" button to skip the video to a highlight which in this case happens to be relatively late in the video (this one starts around 8:49 into this 11:37 long video).
  3. Press the "<5" button to go back five seconds to ~8:44 (or press it a few times to go back a little further).
  4. Sound playback continues but sound playback stops until ~8:50.
  5. If we press "<5" button more times then this hitch seems to get more severe (see screen recording here: https://storage.googleapis.com/pbv-pro-dev/tmp/Mux_Freezing_Issue.mp4).

Oddly, if I watch a video from start to finish but occasionally go back 5-30sec (pressing the go back button a few times) then there's no issue. It seems to only specifically when we skip into the video first.

Current Behavior

Video freezes but audio keeps playing

Expected Behavior

Video and audio keep playing in sync

Errors

no console errors

What version of the package are you using?

2.7.0

mariuszbeltowski commented 1 month ago

Same issue on mac, tested 2.5.0, 2.6.0, 2.7.0 and 2.9.1.