ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Design problem with seeking to live edge

Open pajatopmr opened this issue 11 years ago • 3 comments

The current ExoPlayer strategy for seeking to the live edge is to use a seekTo(0) to mean seek to live edge. But this will cause a problem with a live event (playlist type == EVENT for HLS) and possibly a live stream with DVR that has a valid playback position value of "0". I would suggest a seekToLiveEdge() method be used instead, with seekTo(0) being used to go to the beginning of the live stream. An implementation for HLS is readily available via PR #848.

pajatopmr avatar Nov 10 '15 17:11 pajatopmr

+1

RKNai avatar Nov 12 '15 08:11 RKNai

+1

miyaji27 avatar Dec 08 '15 03:12 miyaji27

ExoPlayer V2 has a seekToDefaultPosition(), which will seek to the live edge for live streams. seekTo(0) is freed up for legitimate seeks to t=0. Note that we still don't support seeking in the live window for HLS (we do for DASH and SmoothStreaming), but this should land sometime fairly soon now for V2.

ojw28 avatar Aug 31 '16 22:08 ojw28