Hi Support Team
Can you please help me out to resolve below query
I am using bitmoving in android , language is kotlin
When i am playing a live content i need two attribute i.e , position in millisecond and the duration in millisecond. for setting our custom progressbar , for this i am trying to obtaining it from two api for duration in millisecond :
durationMs = (-viewModel.getMaxTimeShift() * TIME_ONE_SECOND_MS).toInt().
and for
position in millisecond : positionMs = (durationMs + viewModel.getTimeShift() * TIME_ONE_SECOND_MS).toInt()
We are using for setting our progressbar , the suggested code is provided in bitmovin github : bitmovin-player-android-samples/CustomUiKotlin/src/main/java/com/bitmovin/player/samples/custom/ui/PlayerUI.kt at main · bitmovin/bitmovin-player-android-samples · GitHub
For some content , its working fine and some content we are getting both time as viewModel.getMaxTimeShift() =0 and getTimeShift() =0
The Sample URL : https://live-par-2-cdn-alt.livepush.io/live/bigbuckbunnyclip/index.m3u8
I Have tried to play the same content in bitmovin dashboard {section :try your stream} the progressbar is working fine
can you please help me out if i am missing anything , how to fix it