Skip to content

Position is always -1 on Android when using startPlayer with dataBuffer #6

Description

@chuot

On Android, the MediaPlayer.getDuration() returns -1 if streaming live content. This appears to be the case when using startPlayer with dataBuffer.

This line and this line should also test for duration != -1 so position stay usable later on.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions