Oliver Woodman
0ef28abbec
Modified Webvtt parser to handle cue identifiers and tags.
...
Issue: #268
2015-02-03 12:41:49 +00:00
Oliver Woodman
c1a2f3d0c2
Add AOSP header.
2015-02-02 19:54:56 +00:00
Oliver Woodman
7b9b7c6e3b
Handle non-indexed representations.
...
These may occur in VOD streams where a representation's data
is small enough not to require segmentation or an index. For
example subtitle files.
Issue: #268
2015-02-02 19:54:08 +00:00
Oliver Woodman
d1fe33cdf8
Add DefaultSampleSource and SampleExtractor interface.
...
SampleExtractor will initially only be implemented by FrameworkSampleExtractor
which delegates to a MediaExtractor, but eventually it will also be implemented
by additional extractors.
The sample extractor can be used as a source of samples via DefaultSampleSource.
2015-02-02 14:59:30 +00:00
Oliver Woodman
6f3ccc3615
Handle byte-order-mark prefix to WebVTT file.
...
Issue: #268
2015-02-02 14:56:33 +00:00
Martin Bonnin
e33e1d7922
cleaner test
2015-01-27 18:37:27 +01:00
Martin Bonnin
c228017fe4
rename hasQueuedOneInputBuffer to hasQueuedInputBuffer
2015-01-27 18:35:40 +01:00
Oliver Woodman
ed0b02d09b
Package restructuring to accommodate incoming features (sorry).
...
This may be painful in terms of applications having to change their
imports. Sorry about that.
2015-01-27 17:00:46 +00:00
Oliver Woodman
b7be7bc01b
Fix handling of PTS wraparound.
2015-01-27 15:12:33 +00:00
Oliver Woodman
ee83468084
Blacklist playlists that 404/410.
2015-01-27 15:11:44 +00:00
ojw28
c6c6f2d83e
Merge pull request #266 from google/dev
...
dev -> dev-hls
2015-01-27 15:10:34 +00:00
Martin Bonnin
424b29f996
remove REINIT_STATE_DO_REINIT_NOW state, reinit directly when needed.
2015-01-27 10:44:02 +01:00
Oliver Woodman
f1a7784eb1
Fix DASH Live edge calculation.
...
Also added clamping to getSegmentNum in one case where
it was not already implemented, and defined this behavior
property in the getSegmentNum javadoc.
Issue: #262
2015-01-26 14:49:33 +00:00
Oliver Woodman
a64df69f85
Refine last segment calculation.
...
This makes the calculation correct for the case where periodDurationMs
does not divide exactly into durationMs.
2015-01-26 14:08:38 +00:00
Ihor Zakhozhyi
1a363849e2
Fixed wrong calculation of last segment number when using segment template without segment timeline.
2015-01-25 18:49:53 +02:00
ojw28
95341440da
Merge pull request #263 from google/dev
...
dev -> dev-hls
2015-01-23 14:32:21 -08:00
Oliver Woodman
14d1317ce0
Replace tabs with spaces.
2015-01-23 22:25:39 +00:00
Oliver Woodman
4f65e94e93
Add Javadoc to ParsableByteArray.
2015-01-23 22:23:59 +00:00
Oliver Woodman
59b04df4c3
Fix incorrect max height calculation.
2015-01-23 22:18:54 +00:00
Oliver Woodman
6520557dc0
Add (not technically necessary 0xFF guard for clarity).
...
Without this, the byte is cast as follows (in bits) if the top
byte is set:
10000010 -> 1000000000000000000000000000010
This works because we then always shift at least one bit left,
and only look at the bottom 8 bits of the result. It's confusing
though. It's clearer if the cast to int gives just adds zeros to
the front, like:
10000010 -> 0000000000000000000000010000010
2015-01-23 09:08:41 -08:00
Lei YU
80602b1684
Make BitArray.readUnsignedByte() a bit more clear by using int value instead of byte to prevent unnecessary convert from int to byte.
2015-01-23 23:52:46 +08:00
Lei YU
a9b2120fc9
Fix an issue in BitArray.readUnsignedByte() returns incorrect value when bitOffset is not zero and data[byteOffset + 1] starts with bit 1.
...
This is caused by signed right shift, the fix is simply to make it unsigned right shift.
2015-01-23 16:44:23 +08:00
Andrey Udovenko
b30f55f147
Process only type == 0 captions. #156
2015-01-22 12:53:33 -05:00
Martin Bonnin
79708f43f8
handle the case when flushCodec() is called while reiniting the decoders
2015-01-22 10:24:51 +01:00
ojw28
ef396933f8
Merge pull request #255 from google/dev
...
dev -> dev-hls
2015-01-21 15:52:31 -08:00
Oliver Woodman
e246970a20
Minor style tweaks.
2015-01-21 15:51:02 -08:00
Oliver Woodman
bb9e34f512
Minor style tweaks.
2015-01-21 15:47:17 -08:00
Andrey Udovenko
4158ede6e3
Move Closed Captions processing to Eia608TrackRenderer. Use TextRenderer interface for captions. Sort captions based on video frames DTS. Add better control characters and special characters in basic North American character set support. Fixes #156
2015-01-21 11:54:23 -05:00
Nezz
8547f0c05d
Replaced tabs with spaces
2015-01-21 17:44:48 +01:00
Nezz
796e5bc7d6
FrameworkSampleSource with FileDescriptor #246
2015-01-21 04:23:13 +01:00
Oliver Woodman
fe43377104
Increase retry count to 3
2015-01-12 17:44:42 +00:00
ojw28
06e9e5d3ea
Merge pull request #234 from google/dev
...
dev -> dev-hls
2015-01-12 17:43:44 +00:00
Oliver Woodman
a879819dd3
Force callers into MediaCodecUtil to catch any exceptions that occur.
...
Issue: #217
Issue: #228
2015-01-12 17:40:55 +00:00
Oliver Woodman
286365ada8
Use Long.SIZE.
2015-01-12 17:38:21 +00:00
Oliver Woodman
3ca12d0c39
Update min retry count to 3.
...
Empirical testing in shows increased robustness.
2015-01-12 17:37:25 +00:00
Oliver Woodman
e8d2c00cf7
Add trace to chunk fetches.
2015-01-12 17:37:07 +00:00
Oliver Woodman
f65a093596
AudioTrack enhancements.
...
- Workaround issue where video may freeze whilst audio continues
on some devices that have entered bad states.
- Fix wrap-around for playbacks lasting more than 27 hours.
2015-01-12 17:35:43 +00:00
Oliver Woodman
224fc2eef8
Omit range header if the range is 0-.
...
Apparently some servers don't like it, and in general it's
unnecessary to set the header for this case.
2015-01-12 17:34:00 +00:00
ojw28
a6e94af267
Merge pull request #226 from google/dev
...
Refine logic for determining AudioTrack size.
2015-01-06 20:15:42 +00:00
Oliver Woodman
1613c9c7a8
Refine logic for determining AudioTrack size.
...
- Target 4x the minimum specified by the framework.
- Impose a minimum duration (250ms).
- Impose a maximum duration (750ms, or the minimum
specified by the framework if that's larger).
I've removed the ability to specify the multiplication
factor, since the underlying implementation is getting more
complicated, and we should really be able to figure this out
internally.
2015-01-06 20:13:50 +00:00
ojw28
869ecbfcf3
Merge pull request #225 from google/dev
...
dev -> dev-hls
2015-01-02 17:38:59 +00:00
Oliver Woodman
d906e405a1
Propagate AudioTrack errors.
2015-01-02 17:35:57 +00:00
Martin Bonnin
e8a8c49a97
better handling of input format change for non-adaptive codecs
...
* this fixes a bug when switching from HE-AAC 22050Hz to AAC 44100Hz (the AudioTrack was not reset and we were trying to send a bad number of bytes, triggering a "AudioTrack.write() called with invalid size" error)
* this also improves quality switches, making it almost seamless
2014-12-23 13:47:50 +01:00
ojw28
f745be8978
Merge pull request #219 from google/dev
...
Include gradle plugin 1.0.0
2014-12-23 10:53:58 +00:00
ojw28
a96a7fe782
Merge pull request #218 from google/master
...
Include gradle plugin 1.0.0
2014-12-23 10:53:29 +00:00
Sebastian Roth
e4ea9c1056
Include gradle plugin 1.0.0
2014-12-22 10:34:46 +08:00
ojw28
f39d83cf75
Merge pull request #215 from google/dev
...
dev -> dev-hls
2014-12-20 12:00:41 +00:00
Oliver Woodman
4c0554d0d7
Start adding support for more formats in WebM container.
2014-12-20 11:59:19 +00:00
Oliver Woodman
ed6fcb638e
Fix reading single byte from DataSourceInputStream.
2014-12-20 11:57:49 +00:00
Oliver Woodman
0414b0d2f6
Fix assertion fail on seek.
...
Issue: #214
2014-12-20 11:57:05 +00:00