Android Media3 (ExoPlayer): How to set defaultPositionUs of a Window in the Timeline?

68 views Asked by At

I want to set default start positions of my playlist items (basically to resume from where the user left), to use when playlist item auto transitions to next item.

As per my understanding (I am not sure), the default start position is of the window in the timeline.

From Docs: Timeline.Window.defaultPositionUs. But, I can't find a way to set this defaultPositionUs parameter.

I use this function to set playlist items: setMediaItems. My playlist items are mp3 files (local and https source).

0

There are 0 answers