Skip to content

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

@chuot

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.

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