Hello there,
I’m having an issue with the expo video module.
I use playbackStatus to check wether or not a video has ended and to perform an action if it’s the case.
Everythig works properly on iOS, the alert is displayed as soon as the video ends. But it fails as soon as I try on Android (same code), the condition “if (playbackStatus.didJustFinish){” is never true even though the _onPlaybackStatusUpdate works fine.
Any help would be greatly appreciated, since I can’t find anything related anywhere
Kind regards
import { Video } from 'expo';
...
_onPlaybackStatusUpdate = playbackStatus => {
if (playbackStatus.didJustFinish){
alert('test');
}
};
...
<Video
source={ require('../assets/video1.mp4') }
...
onPlaybackStatusUpdate= { (playbackStatus) => this._onPlaybackStatusUpdate(playbackStatus) }