Novice
Novice

Reputation: 411

How to get current playback position for a live stream in Exoplayer

Is there anyway we can get the current playback position of a live stream from its start of streaming using exoplayer?

We have seen the post at https://github.com/google/ExoPlayer/issues/2118#issuecomment-263536694 but for our stream, both period and window value is coming as 1. Is there anyway we can calculate the actual live position of the stream?

Here is a snapshot of the timeline that we are getting enter image description here

Upvotes: 4

Views: 2984

Answers (1)

Matan Marciano
Matan Marciano

Reputation: 153

The start of streaming not presented in Exo classes. You can know the start time (world clock) of the current window and add the current player position. this is your current position in world clock

Upvotes: 1

Related Questions