react-player icon indicating copy to clipboard operation
react-player copied to clipboard

Differences in seeking between Chrome and Mozilla

Open MacieJCzarkowskI opened this issue 6 years ago • 3 comments

Chrome MozillaFrames

As in the pictures attached, there is one frame difference between the two browsers

Example to reproduce:

https://codesandbox.io/s/frosty-thunder-dn3yq

Steps to reproduce when we :

  1. Click on button "To point"
  2. Keep clicking 'go + 1 frame' until the red square covers the first brick as shown in the example
  3. Repeat the instructions on the other viewer

For now i'm using workaround, but maybe There is something i miss :)

MacieJCzarkowskI avatar Aug 04 '20 12:08 MacieJCzarkowskI

I'm not sure it's related. I'm experiencing the same issue with both Chrome and Firefox when seeking through "long" audio files.

If I open VLC and seek to the same position as I do with react-player, they are out of sync of about 0.5-2% of the length of the entire audio file.

Also, the ref.getCurrentTime() returns a value that is half-way of the VLC position and the react-player position.

If I wanted to seek to the same position in the audio file, I had to use these timestamps (audio length is 70min)

  • VLC position: 1:00:07
  • ref.getCurrentTime(): 1:00:16
  • react-player position: 1:00:32

Version: 2.6.0

marco-bor avatar Aug 07 '20 12:08 marco-bor

Update: Turns out that this issue only happens with mp3 audio files. Converting them to any other format works just fine.

marco-bor avatar Aug 12 '20 16:08 marco-bor

This is an interesting quirk between browsers, but I'm not sure there's anything ReactPlayer can do about this.

cookpete avatar Aug 21 '20 19:08 cookpete