chown Member May 9, 2021 #1 Hey guys Im using ExoPlayer as player for audio player. Now I want send player position to seekbar, how can I catching Exoplayer position during audio playing? this is my seekbar code, but where should I put it to? B4X: progPlayer.Value=100*(player.Position / player.Duration)
Hey guys Im using ExoPlayer as player for audio player. Now I want send player position to seekbar, how can I catching Exoplayer position during audio playing? this is my seekbar code, but where should I put it to? B4X: progPlayer.Value=100*(player.Position / player.Duration)
klaus Expert Licensed User Longtime User May 9, 2021 #2 You should use a Timer. You can enable the timer when you start playing and disable the timer when the playing is completed. Upvote 0
You should use a Timer. You can enable the timer when you start playing and disable the timer when the playing is completed.
chown Member May 9, 2021 #3 klaus said: You should use a Timer. You can enable the timer when you start playing and disable the timer when the playing is completed. Click to expand... Yes and thank you @klaus Just following this tutorial from @Erel https://www.b4x.com/android/forum/threads/mediaplayer-tutorial.6591/ Upvote 0
klaus said: You should use a Timer. You can enable the timer when you start playing and disable the timer when the playing is completed. Click to expand... Yes and thank you @klaus Just following this tutorial from @Erel https://www.b4x.com/android/forum/threads/mediaplayer-tutorial.6591/