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

[BUG] Scrubbing on iPad (safari) jumps around in video and is slow #591

Closed
elynema opened this issue Jul 23, 2024 · 5 comments
Closed

[BUG] Scrubbing on iPad (safari) jumps around in video and is slow #591

elynema opened this issue Jul 23, 2024 · 5 comments
Assignees
Labels
investigation Related research work

Comments

@elynema
Copy link

elynema commented Jul 23, 2024

Describe the bug
When scrubbing on an iPad (Safari), the playhead jumps forward, then way backward, then forward again VERY slowly. It makes it look like it's never going to get to where you scrubbed. This happens both when dragging the playhead and when clicking in the progress bar.

I did not notice this behavior as much in the Ramp demo site, so not sure if this is Ramp or Avalon-specific.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any record in avalon-staging on an iPad (Safari). Ex: https://avalon-staging.dlib.indiana.edu/media_objects/v405s9361
  2. Start playback
  3. Try dragging the playhead forward into the video.
  4. The playhead jumps forward, then all the way backward, then forward again.
  5. Try clicking in the progress bar to scrub forward or backward.
  6. The playhead slowly jumps forward, backward, and forward again.

Expected behavior
Scrubbing should get to where the user selected within 1-2 seconds and should minimize the frames show in between. In particular, going forward, then backward, makes it look like scrubbing did not work to the user.

Screenshots

ipad-scrubbing.mov

Smartphone (please complete the following information):

  • Device: iPad
  • OS: iOS 17
  • Browser: Safari
@elynema elynema added the investigation Related research work label Jul 24, 2024
@elynema
Copy link
Author

elynema commented Jul 24, 2024

This was the problem that we were originally working on in Safari on desktop. Dananji thinks this is an issue with Safari's timing on player events and believes it is a native video.js issue. If that is the case, there probably is not a reasonable solution.

This should be tested against video.js native player to make sure that is the issue that is happening.

@elynema
Copy link
Author

elynema commented Jul 25, 2024

Test this in Ramp demo site. If we are happy with how it is working, then we can keep this. If not, revert and continue to work on this for a future release.

@Dananji
Copy link
Collaborator

Dananji commented Jul 25, 2024

The frame lagging when scrubbing is still there in Safari. But it waits for the player to reach the seeked or scrubbed time frame to start playback again. This seems to be the native Video.js behavior when I tested with the Video.js' native progress control component for HLS stream media.

@elynema
Copy link
Author

elynema commented Jul 26, 2024

@Dananji I just took a quick look at this in iPad on the demo site. I'm not seeing the skipping around, which is an improvement because that is just confusing to users.

I am seeing some fairly significant latency on scrubbing. Sometimes it's 2 seconds and pretty much fine, but sometimes it is 6 seconds or more.

@joncameron Can you also take a look and post if you are seeing the same thing?

@joncameron
Copy link
Contributor

This looks OK to me in that the jumping/latency behavior seemed to be slightly better overall so I'm going to close; the change can be reverted if required with the desktop Safari fix: #603.

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

No branches or pull requests

3 participants