Open MitoMonkey opened 2 years ago
Facing same issue, when repeat enable the transition is not smooth on iOS
@freeboub any way we can improve this?
Repeat is implemented with a seek which seems to be a good way to proceed...
You can try to change implementation and use avplayerlooper it may be better: https://developer.apple.com/documentation/avfoundation/avplayerlooper
Bug
In my react native project I use this library to play audio files. Some of the are loops. Generally the looping works fine. However on iOS there is a small silence "break" before the files is played again. On Android its a perfectly smooth transition and no one could hear where the file starts over again.
I am using the
With the methods
Platform
I tested it on the XCode iOS Simulator on an iPhone 12, with iOS 15.5. , as well as on a physical iPhone SE running iOS 15.5 with the production version of the app (= not emulated).
As mentioned on an OnePlus 6 (Android 11) with the same production version of the app there is no problem with the loops.
Environment info
From package.json:
"react-native-video": "5.2.0",
React native info output:
Library version: 5.2.0