- 01 Aug, 2018 17 commits
-
-
This CL adds support for seeking within PS streams by using binary search. For any seek timestamp, it tries to find the location in the stream where SCR timestamp is close to the target timestamp, and return this position as the seek position. Github: #4476. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206787691
hoangtc committed -
Currently, we have KeyStatus, KeyRequest and ProvisionRequest as interface, so we can use custom implementation for purpose such as wrapping native objects. However, these interfaces and the corresponding default classes are only used to bundle data, and in all existing implementation (including native code), it's just as efficient to just use the Java default implementation. Therefore we can just get rid of the interfaces, and change the interfaces into classes with the default implementation. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206765389
hoangtc committed -
There is some risk associated with this change, as audio track buffers come from shared memory and limits may be device-specific. I've tested these sizes on Nvidia Shield TV and Nexus Player on various builds. The maximum size allocated is about 800 KB. We could implement support for retrying creating the audio track if it fails to initialize, but it seems preferable to avoid the extra complexity required to do that unless we know it's necessary to work around device-specific limitations. Issue: #3803 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206749222
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206747144
eguven committed -
Issue:#4573 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206737252
aquilescanta committed -
The platform fix was merged into O MR1, not O. Nexus Player has not received this build. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206734342
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206725219
andrewlewis committed -
Add TeeAudioProcessor that doesn't modify the input audio but writes it to an AudioBufferSink, and WavFileAudioBufferSink for writing audio to a .wav file. This is intended to be used for diagnostics and debugging. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206717458
andrewlewis committed -
MatroskaExtractor was checking for INDEX_UNSET as the sample count for buffers not containing syncframes, but actually 0 was returned for these. Theoretically this could prevent us starting to play a TrueHD stream as we wait until we can read the sample count from a syncframe before accepting the audio in DefaultAudioSink, but it seems that rechunking avoided this issue arising in practice. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206575462
andrewlewis committed -
The looping media source doesn't convert the media period id to the externally visible media period id. And the merging media source reports media period creations multiple times which will break listeners assuming a media period with a specific id will only be created once. Also amend the doc for MediaSource.createPeriod to reflect that media periods created in parallel do not actually have the same id. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206327241
tonihei committed -
Period transitions with non-zero start position happen too early as the playing period is advanced as soon as the renderer offset is reached not taking into account that the start position needs to be added to that. Issue:#4583 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206310328
tonihei committed -
Issue: #4591 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206307948
andrewlewis committed -
AudioTrack checks the channel configuration against a mask of allowed channels. Before Android M the check in getMinBufferSize would always fail for 8 channel output. For Android L constants are available to build the required channel configuration for a conventional 7.1 setup and these constants are part of the allowed channels mask, so switch to using them. Before Android L the constants for 7.1 aren't in the allowed channels mask, so discard channels to give a 5.1 stream. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206307892
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206304655
eguven committed -
Remove minLoadableRetryCount from HLS components in favor of LoadErrorHandlingPolicy#getMinimumLoadableRetryCount. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206298419
aquilescanta committed -
If compiled with eac3, audio/eac3-joc stream 5.1 bed-channels can be decoded. The stream will be decoded as 2-D rather than 3-D. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206296930
andrewlewis committed -
The new method allows to add TransferListeners after the DataSource has been created. Most implementations just forward to their wrapped upstream DataSource. Implementation which directly read data implement BaseDataSource instead. Also removes the temporary default no-op implementation in DataSource. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206289986
tonihei committed
-
- 26 Jul, 2018 7 commits
-
-
Oliver Woodman committed
-
This helps to distinguish between the MediaPeriodId the deferred media period is being created with and the MediaPeriodId which is used to create the actual underlying period. This serves two purposes: 1. The error reporting of ad prepare errors uses the correct media period id (the externally visible ad media period id). 2. The transition to using media period uid instead of indices is simplified. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206160463
tonihei committed -
Using our own no-op castNonNull prevents linking into checkerframeworks library. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206152148
tonihei committed -
Inner classes generally has generic names and they make sense when they are considered with the top level class they appear in. When this setting is disabled, Android Studio inserts import for the top level class and append the top level class's name before the reference to the inner class name. NO_SQ ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206127763
eguven committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206119357
andrewlewis committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206021873
andrewlewis committed -
Rewrite FlacBinarySearchSeeker and extract out the core binary search algorithm into BinarySearchSeeker class so it can be re-used for other formats. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206012900
hoangtc committed
-
- 25 Jul, 2018 3 commits
-
-
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205988261
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205972857
olly committed -
This changes the default initial bitrate estimate to be country (group) and network type specific. The existing overwrite still works as before and new overwrites for the country or specific network types are provided for customization. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205972705
tonihei committed
-
- 24 Jul, 2018 7 commits
-
-
Issue: #4468 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205821059
olly committed -
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205816544
olly committed -
While the timeline is empty, we keep a dummy MediaPeriodId in PlaybackInfo with a period index of 0. We leak this MediaPeriodId in actual use in these situations: 1. When issuing an IllegalSeekPosition after preparation. The timeline becomes non-empty, but the media period id stays at its dummy value. 2. When re-adding sources to a previously empty timeline. The dummy period id is used as the start position for the new non-empty timeline. This change makes: - the constructor of PlaybackInfo using those dummy values more explicit - prevents the issues above by using the correct default position in the new non-empty timeline for the above mentioned cases. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205803006tonihei committed -
All known instances use DataSource as generic type and thus code can be simplified by removing the generic type altogether. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205798542
tonihei committed -
Issue:#4535 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205722036
bachinger committed -
Using this surface it's possible to play 360 videos in a non-VR Activity that is affected by phone and touch input. RELNOTES=true ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205720776
eguven committed -
This reduces the number of calls to the DataSpec constructor and minimizes the number of files that need to be updated when adding a new DataSpec parameter (ex: followup [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205719005
sammon committed
-
- 23 Jul, 2018 6 commits
-
-
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205660355
olly committed -
As the manifest and media data sources can be the same now, we can provide a simplified constructor with just one data source factory. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205658046
tonihei committed -
This simplifies the player setup and prevents using deprecated methods in the demo. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205642981
tonihei committed -
This allows to automatically forward bandwidth estimate events to AnalyticsListeners. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205642752
tonihei committed -
This removes the need to populate the entire period for the common usage of getting the uid from the period. Also add default implementation to get period by uid. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205638265
tonihei committed
-