media/library
olly 8bffe5d11e Add DummySurface for use with MediaCodec
A DummySurface is useful with MediaCodec on API levels 23+.
Rather than having to release a MediaCodec instance when the
app no longer has a real surface to output to, it's possible
to retain the MediaCodec, using MediaCodec.setOutputSurface
to target a DummySurface instance instead. When the app has
a real surface to output to again, it can call swap this
surface back in instantaneously. Without DummySurface a new
MediaCodec has to be instantiated at this point, and decoding
can only start from a key-frame in the media.

A future change may hook this up internally in MediaCodecRenderer
for supported use cases, although this looks a little awkward. If
this approach isn't viable, we can require applications wanting
this to set a DummySurface themselves. This isn't easy to do with
the way SimpleExoPlayerView.setPlayer works at the moment, however,
so some changes will be needed either way.

Issue: #677

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154931778
2017-05-11 07:41:45 +01:00
..
all Consolidate version codes in root gradle file 2017-04-18 19:42:27 +01:00
core Add DummySurface for use with MediaCodec 2017-05-11 07:41:45 +01:00
dash Fix playback of DASH/VP9/SegmentList DASH content 2017-04-24 21:37:33 +01:00
hls Check the type of the (non-initial) loaded HLS playlist 2017-04-24 21:38:33 +01:00
smoothstreaming Consolidate version codes in root gradle file 2017-04-18 19:42:27 +01:00
ui Improve DefaultTimeBar color customization 2017-05-11 07:38:42 +01:00