-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
onSeek is not firing on iOS #1977
Comments
Are there any updates with this issue? This bug is absolutely killing me |
@henryjeff not that I have heard. I'm eager to get this fixed too |
The issue here appears to be that the iOS implementation uses a different approach to seeking when the player is scrubbed with the progress bar. The function passed as |
Did a little looking around, and there's really not a good way to detect when the player is being scrubbed (neither AVPlayer nor AVPlayerViewController fire any related events, and the "scrubbing" state isn't explicitly exposed at all). |
@garrottkai thanks! Ya I'm not surprised. We (mux.com) have a quality-of-service product as part of our Mux Data offering and with that we have an AVPlayer SDK that tracks everything around video performance on the playback side (including seeking). The way we do it is by keeping track of the playhead time. While taking into consideration re-buffering events, pause events, we can see if the playhead time jumps forward or backwards in time relative to elapsed wallclock. |
Bug
onSeek
event is not firingPlatform
Which player are you experiencing the problem on:
Environment info
React native info output:
Library version: x.x.x
Steps To Reproduce
onSeek
callback to theVideo
element. See thatonSeek
does not get called when running on iOS app (it does get called when running on Android )...
Expected behaviour
onSeek
should be called on iOS. In this exampledebug onSeek
should be printed to the logs like it is on the Android app.Reproducible sample code
Video sample
If possible, include a link to the video that has the problem that can be streamed or downloaded from.
The text was updated successfully, but these errors were encountered: