-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Request: update docs about when player.videoFormat.width
could return NO_VALUE
#5409
Comments
If you need to size something (e.g. a UI component) then you should use
In practice I think |
About How could a video have an unknown resolution? Does it have a changing resolution as you play it? Is it possible to get just the video specs without really playing it? Or is the normal, Android framework API good enough for this, as shown here for example? Which is more recommended? Does ExoPlayer support more ? Is it more reliable? I can see that this API is for files, but I wonder if it's also for other types ... Anyway, I suggest to mention the |
The video resolution is always known when the output buffers come out of the decoder. As above, use
ExoPlayer doesn't currently support this use case (although with enough ingenuity it would be possible to implement with the various components that ExoPlayer provides). Providing direct support is tracked by #3609. |
I see. |
@ojw28 Were the docs updated, then? Is it now clearer? |
It only says there about
NO_VALUE
that :But it doesn't say when it occurs.
If I open an MP4 file from a server, could it occur ?
How could it be that it's about to show a video, but doesn't know what is the size of the video? I don't understand what are the possible scenarios for this...
Or is it just when the video wasn't decoded at all yet? But this might be what "not applicable" means, no? What about "unknown" ?
Please update the docs about it. Should we handle such weird cases even in VideoListener.onRenderedFirstFrame callback?
The text was updated successfully, but these errors were encountered: