media/library
ibaker 07352a4585 Retry creating a MediaCodec instance in MediaCodecRenderer
It's been observed that some devices fail when releasing a secure codec
attached to a surface and immediately trying to create a new codec
(secure or insecure) attached to the same surface. This change catches
all exceptions thrown during codec creation, sleeps for a short time,
and then retries the codec creation. This is observed to fix the problem
(we believe this is because it allows enough time for some background
part of the previous codec release operation to complete).

This change should have no effect on the control flow when codec
creation succeeds first time. It will introduce a slight delay when
creating the preferred codec fails (while we sleep and retry), which
will either delay propagating a permanent error or attempting to
initialize a fallback decoder. We can't avoid the extra delay to
instantiating the fallback decoder because we can't know whether we
expect the second attempt to create the preferred decoder to succeed or
fail. The benefit to always retrying the preferred decoder creation
(fixing playback failures) outweighs the unfortunate additional delay
to instantiating fallback decoders.

Issue: google/ExoPlayer#8696
#minor-release
PiperOrigin-RevId: 414671743
2021-12-08 10:01:38 +00:00
..
all Add database module 2021-10-26 14:19:43 +01:00
common GL: Document ambiguous parameter names in comments. 2021-12-08 10:01:32 +00:00
core Retry creating a MediaCodec instance in MediaCodecRenderer 2021-12-08 10:01:38 +00:00
dash Add optional id to TrackGroup. 2021-12-02 15:21:33 +00:00
database Add database module 2021-10-26 14:19:43 +01:00
datasource Remove null keys from DefaultHttpDataSource#getResponseHeaders 2021-11-18 13:17:40 +00:00
decoder Make package in test manifest consistent 2021-10-29 11:35:26 +01:00
extractor Fix 1 ErrorProneStyle finding 2021-12-02 15:21:02 +00:00
hls Shorten log tags to 23 char limit 2021-12-06 13:05:45 +00:00
rtsp Merge pull request #9606 from ened:rtsp-socket-factory 2021-12-06 12:36:42 +00:00
smoothstreaming Add optional id to TrackGroup. 2021-12-02 15:21:33 +00:00
transformer Fix re-encoding after flattening 2021-12-07 17:44:54 +00:00
ui Document that channelNameResourceId needs to be set 2021-11-26 15:26:35 +00:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.