- 15 Jun, 2016 40 commits
-
-
TrackRenderer and SampleSourceTrackRenderer both now use a TrackStream so they can be merged. (This may also be useful for adding playlist support, in case TrackStreams need to be replaced during playback.) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119743228
andrewlewis committed -
This CL allows style blocks to reference elements. For example: we could style a cue with text "Sometimes <b>bold</b> is not enough" with the style block ::cue(b) { ... }. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119734779aquilescanta committed -
This is in preparation for the player knowing about the live window, at which point only correct playback positions will be passed into ChunkSource implementations. Note that both implementations bound the chunk index within range in case of, for example, off-by-one errors caused by very recent manifest updates. This will temporarily cause live playbacks to always start at the beginning of the current live window (we'll be trying to play from t=0, which will be adjusted to the start of the live window as a result of the bounding). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119733559
olly committed -
FrameworkSampleSource will still be useful for audio, where sample interleaving isn't an issue. We could optionally add a "don't wait for first frame" boolean to the video renderer if we *really* need to keep some form of this workaround in place, but I'd rather not do so for now. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119733224
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119732992
olly committed -
Also add jni/flac directory to .gitignore. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119730955
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119655941
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119643009
eguven committed -
In CSS, ids are references using #. The absence of # references elements. NOTE: If the id of a cue was "1", we support its reference with ::cue(#1). In CSS, however, this is not valid, and the number should be escaped with \3 as in ::cue(\31). We still do not use number escaping (and I doubt whether we should at some point). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119634708
aquilescanta committed -
This CL removes a warning by adding the import, and removes a qualified reference in the process. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119618343
aquilescanta committed -
This CL adds the support of CSS styling in Cues through id and "universal" cue selector. The more sophisticated selectors will be left for later, because they requier a bit more complex logic. Also narrowed a little bit the responsibilities of the WebvttCueParser to move some to the WebvttParser. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119547731
aquilescanta committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119544516
eguven committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119532634
andrewlewis committed -
Both of these features are being promoted to first class citizens in V2 (multi-period support will be handled via playlists, seeking-in-window will be handled by exposing the window/timeline from the player and via the normal seek API). For now, it's much easier to continue the refactoring process with the features removed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119518675
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119393264
cblay committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119211619
olly committed -
https://github.com/google/ExoPlayer/pull/1397
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119182077
olly committed -
Note that the DataSourceInputStream read methods are implementing a different interface (InputStream, not DataSource), which is why -1 is still used in that case. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119180851
olly committed -
This method is needed by FlacExtractor to release native resources. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119143922
eguven committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119049397
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119020538
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118954433
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118925372
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118924198
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118921673
olly committed -
This replaces calls to unescape except for SEI unescaping. Use the new ParsableNalUnitBitArray for reading the slice header in HLS access unit detection and slice_type reading. Unescape the SPS before parsing in FLV and MP4. Before this change it was parsed in its original (escaped) form. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118777869
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118775995
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118775612
olly committed -
The only change that's not re-ordering is to add a Util method for usToMs to replace the ones in the HLS and Chunk sources. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118775359
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118775144
olly committed -
This was made possible by the simplification of how DASH/SS chunk replacement works. It is also a step towards eliminating continueBuffering(), since continueBuffering() calls are no longer relied upon to resume a backed off load. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118774865
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118774671
olly committed -
Step 6 of the refactor involves moving the logic that's currently in the SourceBuilder classes in the demo app into new SampleSource classes in the library. These classes will construct video/audio/text pipelines on-demand (i.e. when tracks are enabled) rather than constructing them all up front as is currently the case in the SourceBuilder classes. Hence we need a way to instantiate DataSource instances (i.e. a DataSourceFactory ;)). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118722180
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118579021
olly committed -
DASH + SS previously had a ridiculously complicated chunk replacement mechanism in resumeFromBackOff. It also didn't allow replacement of the first media chunk in the queue, even though it's possible to remove it in the case that no corresponding samples have been consumed. This CL moves DASH + SS to the simpler model used in the HLS implementation, where the chunk source has a single opportunity to cancel (and hence later replace) the chunk when the load error occurs. With this change comes the ability to replace the first media chunk in the queue in all cases where it's possible to do so. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118573418
olly committed -
This fixes some nuances with the initial solution. Mainly, that the TrackStreams returned by selectTrack could not be used safely until after endTrackSelection was invoked. It also reduces the need for member variables to track state between the track selection methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118556651
olly committed -
- Use FakeDataSource as the upstream source. - Actually validate that caching is happening (i.e. reads happen on the upstream source only if the data hasn't been read through the CacheDataSource already). - Move FakeClock to sit alongside the other Fake classes. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118555903
olly committed -
In V2 we'll at some point start using DataSource factories for creating DataSource instances. If there are two DataSource interfaces this gets unnecessarily awkward. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118470751
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118457489
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118455206
andrewlewis committed
-