Oliver Woodman
e84c852169
Select E-AC-3 in preference to AC-3, and remove other tracks.
2015-04-17 20:01:06 +01:00
Oliver Woodman
3f1638de95
Use ENCODING_PCM_16BIT for keepSessionIdAudioTrack.
...
ENCODING_PCM_8BIT support is not required.
2015-04-17 19:59:58 +01:00
Oliver Woodman
e4e6a1caf0
Switch from AudioFormat.ENCODING_DEFAULT to .ENCODING_PCM_16BIT.
...
AudioTrack.getMinBufferSize does not handle ENCODING_DEFAULT so
switch back to ENCODING_PCM_16BIT.
2015-04-17 19:59:03 +01:00
Oliver Woodman
31552b8cdf
Handle play/pause button in the Demo app on Android TV.
2015-04-17 19:57:56 +01:00
Oliver Woodman
c3bf60b1a9
Add JavaDoc to remove lint warning about unused variable.
2015-04-14 16:45:46 +01:00
Oliver Woodman
7cf6aa86d2
Properly document in code how to pass CustomData to PlayReady DRM.
...
Issue: #339
2015-04-14 16:44:01 +01:00
Oliver Woodman
d9b3582baa
Use OMX.google.raw.decoder for passthrough playback.
...
The OMX component needs to be configured with a format that has a
MIME type of audio/raw. Remove Ac3PassthroughAudioTrackRenderer,
which is no longer used.
2015-04-14 16:42:24 +01:00
Oliver Woodman
ed1dbddc75
Trim memory when disabling ExtractorSampleSource.
...
This prevents memory leakage even in the case where the app
is still holding a reference (direct or indirect) to the
Allocator.
2015-04-13 19:36:16 +01:00
Oliver Woodman
0d69a2eae8
Implement event reporting from HlsSampleSource.
...
Issue: #275
2015-04-13 19:03:04 +01:00
Oliver Woodman
e21f7801b5
Major surgery to move all playback modes to the new Extractor model.
2015-04-13 18:57:31 +01:00
Sergio Moreno Mozota
e5acc5a2c8
resync with Extractor changes
2015-04-13 16:58:19 +02:00
Sergio Moreno Mozota
da7ae2a925
Merge remote-tracking branch 'upstream/dev' into dev
2015-04-13 15:56:43 +02:00
Oliver Woodman
265adf9a8f
Move chunk trigger constants into Chunk.
2015-04-11 02:09:40 +01:00
Oliver Woodman
a17ffa66f2
Delete test for the removed source package.
2015-04-11 02:05:53 +01:00
Oliver Woodman
ad56490bde
Add ability to discard from write-side of DefaultTrackOutput.
2015-04-11 02:03:43 +01:00
Oliver Woodman
4c8f9a8c6f
Remove source package, and restore original FrameworkSampleSource.
2015-04-11 02:00:47 +01:00
Oliver Woodman
587edf8e2b
Add new style mp4/fmp4 extractors.
2015-04-11 01:58:34 +01:00
Oliver Woodman
f002e6a76e
Add test for DefaultExtractorInput + trivial Extractor sanity checks.
2015-04-11 01:42:48 +01:00
Oliver Woodman
7d8141e419
Add new style mp3 extractor.
2015-04-11 01:42:03 +01:00
Oliver Woodman
4a1fed9e86
Add new style WebM extractor.
2015-04-11 01:30:11 +01:00
Oliver Woodman
6c5af23230
Minor tweaks to HlsSampleSource.
2015-04-11 01:12:40 +01:00
Oliver Woodman
da656e6f26
More steps towards unified extractors.
2015-04-11 01:07:41 +01:00
Oliver Woodman
53a47524a1
Support non-square pixels in HLS.
...
Github issue: #375
2015-04-11 00:59:00 +01:00
Oliver Woodman
37d12ff14a
Steps toward generalizing the Extractor interface for all extractors.
2015-04-11 00:55:38 +01:00
Oliver Woodman
3a551c73ba
Move hls.parser to a new extractor package.
...
This package will house all extractors, which will be unified
to implement a single Extractor interface.
2015-04-11 00:27:24 +01:00
Oliver Woodman
fc176b9cbe
Fix TsExtractor bug.
...
The limit on the ts packet buffer can be reduced during processing
if it's discovered to have padding. Hence we need to reset it back
to the ts packet size before processing each packet.
2015-04-10 23:41:45 +01:00
Oliver Woodman
61443b2f12
Relocate content of Mp4Util to more sensible locations.
...
- Atom related stuff in Mp4Util is moved to Atom.
- Remainder of Mp4Util is renamed to H264Util.
2015-04-10 23:31:03 +01:00
Oliver Woodman
fea2140d57
Add ability to query size/rate support in MediaCodecUtil.
2015-04-10 23:15:52 +01:00
Oliver Woodman
38efb1fc3f
Clean up Aes128DataSource.
2015-04-10 23:12:47 +01:00
Oliver Woodman
6bf52dd69c
Report decoder initialization information out of track renderer.
2015-04-10 23:06:57 +01:00
Oliver Woodman
a17123c49b
Clean up codec reinitialization.
2015-04-10 23:03:50 +01:00
Oliver Woodman
380c427fb3
Make MediaCodecVideoTrackRenderer easier to extend.
2015-04-10 23:01:09 +01:00
Oliver Woodman
a085d2f29b
Add END_OF_INPUT constant + start using it.
2015-04-10 23:00:23 +01:00
Oliver Woodman
608d685b2c
Add missing header.
2015-04-10 22:56:13 +01:00
Oliver Woodman
d745384d99
Change decodeOnly to be a sample flag.
2015-04-10 22:55:12 +01:00
Oliver Woodman
70b0e55a8b
Remove deprecated bandwidth parameter.
2015-04-10 22:39:15 +01:00
Oliver Woodman
c901025643
Don't attempt license request when keys expire.
...
- Keys should not expire during normal playbacks of correctly configured content.
- Attempting to refresh on expiration causes a race condition, that may result
in either failure or brief re-buffer, for the 30s license test video.
- This change provides deterministic behavior, which is to always fail.
2015-04-10 22:38:06 +01:00
Oliver Woodman
d108c13535
Remove deprecated method.
2015-04-10 22:36:07 +01:00
Oliver Woodman
4dc8e8f951
Add audio and m3u8 mime types.
2015-04-10 22:35:03 +01:00
Oliver Woodman
ecaf329b0d
Improve ParsableByteArray performance + enhance API.
2015-04-10 22:34:06 +01:00
Oliver Woodman
ed658b8e8d
Attempt to guard against ExoCache corruption.
2015-04-10 22:33:10 +01:00
Oliver Woodman
cfcbca6c95
Make FileDataSource throw EOFException.
2015-04-10 22:29:51 +01:00
Oliver Woodman
362dc5f382
Don't fail if server doesn't support partial requests.
...
Some servers, probably edge cache machines that exclusively serve
chunked media, don't support partial requests. Which is kind of
vaguely reasonable for that particular case. This change modifies
DefaultHttpDataSource to correctly handle this case, by manually
skipping data up to the requested position (and making sure not to
read more data than the requested length).
2015-04-10 22:28:20 +01:00
Oliver Woodman
1a198b8a30
Minor cleanup (remove deprecated method, fix javadoc)
2015-04-10 22:24:39 +01:00
ojw28
9183525b5e
Merge pull request #221 from martinbonnin/better_input_format_change_for_non_adaptive_codecs
...
better handling of input format change for non-adaptive codecs
2015-04-01 13:56:15 +01:00
ojw28
fcc2138e9f
Merge pull request #374 from google/dev
...
dev -> dev-webm-vp9-opus
2015-03-31 11:29:42 +01:00
Oliver Woodman
acd1b9acff
Enable ContentProtect elements at the Representation level
2015-03-31 11:28:51 +01:00
Oliver Woodman
5a5935cb72
Fix HLS playlist parsing of boolean attributes.
...
The regex included quotation marks like X="YES", but the manifests
don't actually contain them, for examples X=YES.
2015-03-30 15:56:39 +01:00
Oliver Woodman
85be2aed0a
Add ability to release via Bintray.
2015-03-25 23:50:27 +00:00
Oliver Woodman
d27b6de119
Release AudioTrack when done.
2015-03-25 12:13:53 +00:00