Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getDuration return error time #6330

Closed
VeiZhang opened this issue Aug 22, 2019 · 2 comments
Closed

getDuration return error time #6330

VeiZhang opened this issue Aug 22, 2019 · 2 comments

Comments

@VeiZhang
Copy link

Before filing a bug:

[REQUIRED] Issue description

Using ExoPlayer to play some videos, I found some of them get the wrong duration, always return -1, so I can't seek.

[REQUIRED] Reproduction steps

Using the ExoPlayer demo app, replace Cats -> Dogs uri in media.exolist.json playlist with the test link content.

[REQUIRED] Link to test content

I couldn't upload to my repository, please download from https://mbf.me/Tqk7HX , it is a local video file, not online

[REQUIRED] Version of ExoPlayer being used

the latest.

[REQUIRED] Device(s) and version(s) of Android being used

Amlogic, android7.1

@google-oss-bot
Copy link
Collaborator

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@tonihei
Copy link
Collaborator

tonihei commented Aug 23, 2019

Some streams don't provide the duration or seek information in the header data and that's why we need to play to the end before knowing the actual duration.

The actual value of getDuration is C.TIME_UNSET as documented on the method.

@tonihei tonihei closed this as completed Aug 23, 2019
@google google locked and limited conversation to collaborators Oct 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants