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
[android][video] The more you replay a video, the more onPlaybackStatusUpdate will be called #6342
Comments
Here's a snack that uses replayAsync, I couldn't get your snack to repro the behavior, but this one does - https://snack.expo.io/@charliecruzan/replayvideo It looks like when |
Yes it seems to be the behaviour. Under some circumstances I've even been
able to crash the app with thousands on call with only one replay. It seems
that resizing also does something with the calls.
Le jeu. 21 nov. 2019 à 22:51, Charlie Cruzan <notifications@github.com> a
écrit :
… Here's a snack that uses replayAsync, I couldn't get your snack to repro
the behavior, but this one does -
***@***.***/replayvideo
It looks like maybe every time a video is replayed, the
progressUpdateIntervalMillis is adding a new onPlaybackStatusUpdate call.
Only on android
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6342?email_source=notifications&email_token=AA2SDKNVKHJAGZ6ZTFJTJ3TQU2VBLA5CNFSM4JP6ALYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE2WCYQ#issuecomment-557146466>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2SDKJ3AOAQUZER7PVUS3LQU2VBLANCNFSM4JP6ALYA>
.
|
@cruzach I'm also facing same issue with audio player. I gave progressUpdateIntervalMillis:1000. So when ever i call replayAsync or playFromPositionAsync it started to return play status more than 1 time for next few seconds. |
This is not an easy error to fix, given how AV is structured, especially when it comes to playback update callback. However, will try to dig into it and fix it 🤞 |
Hi! My name is Jhon and I think that I've got the same issue explainned here. Currently I'm developing a react-native project with expo which include a file that uses AV api for displaying a video. In my project for each time in an interval defined by progressUpdateIntervalMillis while video is playing I have to update other component in my application and for this I set a function that make it then I put her at onPlaybackStatusUpdate prop. However ever I invoke some of api's methods one more call than I expect is invoked to onPlaybackStatusUpdate. So what I could like know is if there are something that I can do to resolve this considering that I'm just one first-time traveler in real development and that I do not have experience with tecnologies like android and others I just have my theorical concepts from college and around two months on react-native development. |
🐛 Bug Report
Environment
Target app is android, I test on Emulator Android 9.
Steps to Reproduce
Create a new app, take a video from the internet and just use my code.
The console will be flooded by numbers which will increase quicker and quicker, the more you click on the replay button.
Expected Behavior
The
onPlaybackStatusUpdate
calls should be consistent over video replayActual Behavior
Each time you click on replay button which call playAsync or replayAsync, the callback is called one more time per update.
If you push the button 10 times, instead of calling the
onPlaybackStatusUpdate
1 time every 500ms, it will be called 10 times every 500ms.Reproducible Demo
Please let me know if I can provide more details
The text was updated successfully, but these errors were encountered: