Skip to content

[Android/iOS] seekTo(0) jumps to live edge on an open EVENT playlist #209

Description

@Yummy-sk

Describe the bug

On an HLS EVENT playlist without #EXT-X-ENDLIST, calling seekTo(0) initially triggers onSeek(0), but playback then jumps to the live edge.

Calling seekTo(0.5) works correctly. The issue reproduces on both Android and iOS in the official example app.

The test source was obtained from the official Amazon IVS DVR demo:
https://dvr.ivsdemos.com/

Other player handles seekTo(0) correctly with the same source.

To reproduce

  1. Obtain an HLS EVENT playlist from the official Amazon IVS DVR demo:
    https://dvr.ivsdemos.com/
  2. Run the official amazon-ivs-react-native-player example app using that playlist.
  3. Start playback.
  4. Call mediaPlayerRef.current?.seekTo(0).
  5. Observe that onSeek reports 0, but playback jumps to the live edge.
  6. Call mediaPlayerRef.current?.seekTo(0.5).
  7. Observe that playback continues correctly from 0.5 seconds.

Expected behavior

seekTo(0) should play from the beginning instead of jumping to the live edge.

Screenshots

ivs-error-reproduct-github.mp4

Device (please complete the following information):

  • iOS
  • Android

Debug logs

seekTo(0)
onSeek: 0
state: Playing
progress: live edge

seekTo(0.5)
onSeek: 0.5
state: Playing
progress: approximately 0.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions