- 17 Feb, 2020 6 commits
-
-
PiperOrigin-RevId: 295146481
christosts committed -
Previously that was implicit, it was the passthrough dance: - MimeTypes.getEncoding(inputFormat) did not implement RAW MIME, so it was returning INVALID_ENCODING for PCM - and allowPassthrough was returning MimeTypes.getEncoding() != INVALID_ENCODING - which was setting codecInfo.passthrough, and passthroughEnabled. Thus Util.isEncodingPcm(encoding) is the opposite of (MimeTypes.getEncoding(inputFormat) != C.ENCODING_INVALID) This was rather implicit and brittle as anyone could add support for audio/RAW in MimeTypes.getEncoding and break PCM playback. As a result make it explicit that allowPassthrough must always return false in PCM. PiperOrigin-RevId: 295144013krocard committed -
PiperOrigin-RevId: 295140561
krocard committed -
API level >= 17 is guaranteed by shouldUseDummySurface returning true, but Android Studio shows a warning anyway. PiperOrigin-RevId: 295118491
andrewlewis committed -
PiperOrigin-RevId: 294943298
olly committed -
PiperOrigin-RevId: 294936851
bachinger committed
-
- 13 Feb, 2020 20 commits
-
-
To ease implementation of MediaParser. PiperOrigin-RevId: 294912244
aquilescanta committed -
Modify TrackOutput.sampleData() to accept SampleDataReader instead of ExtractorInput. SampleDataReader supports only read and skip calls, which all sampleData() implementations already restrict themselves to. PiperOrigin-RevId: 294905155
olly committed -
PiperOrigin-RevId: 294893303
kimvde committed -
Currently only one access unit can be written per buffer write. This has been found to be power inefficient in an offload situation. #exo-offload PiperOrigin-RevId: 294886188
krocard committed -
PiperOrigin-RevId: 294883290
kimvde committed -
This information isn't easily available to the player at the moment (or it would need to revaluate this every time), so add it to MediaPeriodInfo similar to the existing isLastInTimelinePeriod. The player needs to know whether a MediaPeriod is the last in its Timeline window if we want to add an option to pause at the end of a window. PiperOrigin-RevId: 294877628
tonihei committed -
PiperOrigin-RevId: 294689274
andrewlewis committed -
Add fields in DecoderCounters for computing the average video frame processing offset. The MediaCodecVideoRenderer reports the video frame processing offset and the demo app presents it on the debug information. PiperOrigin-RevId: 294677878
christosts committed -
The transition in EPII happens based on the duration of the periods, not the windows. So use this duration in case they are not the same. Also make sure to send the message at duration-1 because the playback position at the duration is technically already the first position in the next item. PiperOrigin-RevId: 294669335
tonihei committed -
Issue: #2863 PiperOrigin-RevId: 294661214
olly committed -
This simplifies sending messages to the end of a stream. This was already possible, but users needed to wait until the duration is known before sending the message. This duration resolution can happen as part of the message position resolution. PiperOrigin-RevId: 294626984
tonihei committed -
PiperOrigin-RevId: 294621946
kimvde committed -
This is a no-op change and just moves some duplicated logic into the base class. PiperOrigin-RevId: 294615218
tonihei committed -
PiperOrigin-RevId: 294614958
kimvde committed -
PiperOrigin-RevId: 294613898
kimvde committed -
- Removes empty <p> tag in javadoc - Removes incorrect parameter name warnings for var args. PiperOrigin-RevId: 294555651
olly committed -
Issue: #2863 PiperOrigin-RevId: 294531127
olly committed -
Keeping (Uri) and (Uri, position, length) to avoid needing Builder for the trivial case. PiperOrigin-RevId: 294530226
olly committed -
PiperOrigin-RevId: 294520836
olly committed -
PiperOrigin-RevId: 294518763
olly committed
-
- 11 Feb, 2020 14 commits
-
-
PiperOrigin-RevId: 294503035
olly committed -
Language is already applicable to image formats as well. It can also apply to video formats. For example when the video contains burnt in subtitles. Also, some animation studios produce multiple variants of animations, in which text within the scene itself (e.g., a signpost) is replaced to be language specific. PiperOrigin-RevId: 294500227
olly committed -
- Replace tests specific to HTTP request headers with tests that more generally test constructor correctness. - Add test specifically around the constructor that infers the HTTP method from postBody, since that's a non-trivial bit of constructor logic. Note: In general, I'm not sure this type of test (i.e., testing a bit of trivial copying through a constructor) is worth the cost of writing and maintaining them. That said, checking the new uriPositionOffset is calculated correctly is non-trivial, as is the HTTP method inference, so keeping them for now. PiperOrigin-RevId: 294488684
olly committed -
This is a preliminary step toward adding a DataSpec.Builder, which is needed for sanity when adding DataSpec.customData. The existing absoluteStreamPosition field is very error prone, because anyone using a Builder to adjust the request position will need to remember to adjust two values: dataSpec .buildUpon() .setAbsoluteStreamPosition(x) .setPosition(x) .build(); Furthermore, the difference between position and absoluteStreamPosition is irrelevant in nearly all cases. In the core library, the difference is only relevant when initializing AES encryption/decryption to write/read cache files. Replacing absoluteStreamPosition with uriPositionOffset will simplify the code block above to: dataSpec .buildUpon() .setPosition(x) .build(); PiperOrigin-RevId: 294485644olly committed -
PiperOrigin-RevId: 294465827
kimvde committed -
PiperOrigin-RevId: 294441610
kim-vde committed -
Replace Thread with thread on documentation. PiperOrigin-RevId: 294401357
christosts committed -
Add support for asynchronous input buffer queueing in the MultiLockAsyncMediaCodecAdapter. PiperOrigin-RevId: 294397811
christosts committed -
- Add method to scale scrubber handle of DefaultTimeBar PiperOrigin-RevId: 294366734
olly committed -
PiperOrigin-RevId: 294241169
kimvde committed -
PiperOrigin-RevId: 294239472
kimvde committed -
Currently, the subset of audio tracks for adaptation is selected purely based on the size of the subset in the track group, completely ignoring the previously selected best individual track. This change ignores all tracks with a different configuration than the previously selected best track. PiperOrigin-RevId: 294231806
tonihei committed -
PiperOrigin-RevId: 294222083
bachinger committed -
The DedicatedThreadAsyncMediaCodecAdapter supports enqueueing input buffers in a background Thread. PiperOrigin-RevId: 294202744
christosts committed
-