You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I'm reviewing ExoPlayer, and maybe what I know
Question 1
I want to play various video codecs, audio codecs, and containers on ExoPlayer.
Some videos are videos not supported by ExoPlayer.
I would like to know in advance whether the video you are trying to play is a video supported by ExoPlayer.
Currently the only way I know of is to handle the onPlayerError event.
However, if I do this, ExoPlayer will be processed after the play.
Is there a way to know if video is playable on ExoPlayer before I call ExoPlayer's prepare function?
Question 2
When ExoPlayer attempts to play,
Exception occurs when codec and container can not play in ExoPlayer.
Also, an Exception occurs when ExoPlayer is able to play but has a temporary error.
Ex) Network state, TimeoutException...
What are Best practices that distinguish this?
The example project distinguishes between unsupported formats.
The example project checks the onTracksChanged event for MappedTrackInfo and identifies it as an unsupported type.
The example project checks the onPlayerError event for ExoPlaybackException.TYPE_RENDER and identifies it as an unsupported type.
I think the matroska extracteor lacing Exception(#3026) is also not playable.
In this case, the ExoPlayerbackExeption's Type is TYPE_SOURCE and a ParserException is thrown.
How can I know if a video can not be played on ExoPlayer and quit the app?
How can I retry playback without shutting down the app when a temporary error occurs?
Reproduction steps
Link to test content
Version of ExoPlayer being used
2.7.3
Device(s) and version(s) of Android being used
A full bug report captured from the device
The text was updated successfully, but these errors were encountered:
If the format is just not supported, the player will not select the tracks and will only play the remaining tracks without error. If you see an error of TYPE_SOURCE, it's most likely a problem with reading the data or with parsing the data. Especially ParserExceptions mean that your media is faulty (or ExoPlayer doesn't support this type of media). TYPE_RENDERER is used when there was a problem with decoding the media. Could also mean that the media is faulty or that there is a bug in the platform. Please file specific issues with example media if you have a problem like that.
If you want to retry after error, please call player.prepare(mediaSource, false, false) with the same media source. In the next release, there will also be a method player.retry() to do exactly that.
Before filing an issue:
When reporting a bug:
Issue description
Hello.
I'm reviewing ExoPlayer, and maybe what I know
Question 1
I want to play various video codecs, audio codecs, and containers on ExoPlayer.
Some videos are videos not supported by ExoPlayer.
I would like to know in advance whether the video you are trying to play is a video supported by ExoPlayer.
Currently the only way I know of is to handle the onPlayerError event.
However, if I do this, ExoPlayer will be processed after the play.
Is there a way to know if video is playable on ExoPlayer before I call ExoPlayer's prepare function?
Question 2
When ExoPlayer attempts to play,
Exception occurs when codec and container can not play in ExoPlayer.
Also, an Exception occurs when ExoPlayer is able to play but has a temporary error.
Ex) Network state, TimeoutException...
What are Best practices that distinguish this?
The example project distinguishes between unsupported formats.
The example project checks the onTracksChanged event for MappedTrackInfo and identifies it as an unsupported type.
The example project checks the onPlayerError event for ExoPlaybackException.TYPE_RENDER and identifies it as an unsupported type.
I think the matroska extracteor lacing Exception(#3026) is also not playable.
In this case, the ExoPlayerbackExeption's Type is TYPE_SOURCE and a ParserException is thrown.
How can I know if a video can not be played on ExoPlayer and quit the app?
How can I retry playback without shutting down the app when a temporary error occurs?
Reproduction steps
Link to test content
Version of ExoPlayer being used
2.7.3
Device(s) and version(s) of Android being used
A full bug report captured from the device
The text was updated successfully, but these errors were encountered: