Oliver Woodman
8991586c3b
Merge pull request #7034 from TiVo:p-exception-unreported-discontinuity
...
PiperOrigin-RevId: 305006564
2020-04-06 13:28:40 +01:00
kimvde
c13f41af0d
Remove deprecated members in DefaultTrackSelector
...
PiperOrigin-RevId: 304986313
2020-04-06 13:28:28 +01:00
bachinger
fc785871b3
add start and end position to media item
...
PiperOrigin-RevId: 304795753
2020-04-06 13:28:18 +01:00
olly
8583cd92c7
Suppress warnings in preparation for Checker Framework 3.2.0 upgrade.
...
In particular, replace @SuppressWarnings("initialization") with
@SuppressWarnings("nullness"); see
https://github.com/typetools/checker-framework/issues/3212 .
More information: go/checker-lsc
Tested:
TAP train for global presubmit queue
http://test/OCL:304697666:BASE:304680497:1585968008044:f0c4fd6c
PiperOrigin-RevId: 304751415
2020-04-06 13:28:07 +01:00
ibaker
a6358dc7be
Escape the rubyText when generating HTML
...
This should have been done before, I just missed it.
PiperOrigin-RevId: 304612519
2020-04-06 13:27:58 +01:00
ibaker
bdffab1200
Support multiple <rt> nodes inside <ruby> in WebVTT
...
This is supported (despite what my now-deleted comment says), see the
example here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt
PiperOrigin-RevId: 304612099
2020-04-06 13:27:48 +01:00
olly
fb0330d4db
Propagate playback position through LoadControl shouldContinueLoading.
...
PiperOrigin-RevId: 304420177
2020-04-06 13:27:37 +01:00
ibaker
6438e1cdbc
Add support for tate-chu-yoko to SpannedToHtmlConverter
...
PiperOrigin-RevId: 304386857
2020-04-06 13:27:27 +01:00
bachinger
fe013979c2
use an unmodifiable map with a copy of the license request headers
...
PiperOrigin-RevId: 304356504
2020-04-06 13:27:16 +01:00
ibaker
205adb7f8d
Rewrite the vertical text support in SubtitleWebView
...
The attempt in <unknown commit> was hacky and incomplete.
PiperOrigin-RevId: 304356038
2020-04-06 13:27:06 +01:00
ibaker
7323b5351a
Add support for multi-line strings to SpannedToHtmlConverter
...
PiperOrigin-RevId: 304355717
2020-04-06 13:26:50 +01:00
ibaker
f3c7c88d7c
Tweak Cue.line javadoc again to reflect WebVTT spec
...
It's interesting WebVTT explicitly handles line & position differently
in horizontal-rl/lr and vertical-lr/rl contexts. position is always
measured from the left of the viewport, even for rtl text, but line in
vertical-rl is measured from the right of the viewport.
We don't have to make Cue match WebVTT (I can go change the WebVTT
decoding instead) but it seems a reasonable 'default' to follow.
PiperOrigin-RevId: 304353900
2020-04-06 13:26:40 +01:00
bachinger
dc4118da7b
add clearTrackTypes and playClearContentWithoutKey to DrmConfiguration
...
With these additional properties, we can declare the behaviour for clear tracks and clear content on a media item level.
PiperOrigin-RevId: 304351716
2020-04-06 13:26:29 +01:00
Steve Mayhew
fbd97ad8de
Fix merge mistake, wrong track type.
...
Fix mistake from the backport merge, should get TEXT track type for subtitles. Also update testcase to match pattern in `dev-v2` branch.
2020-04-05 13:23:03 -07:00
Steve Mayhew
4ad4a826ab
Cleanup to use getCodecsOfType()
...
Use the `Util.getCodecsOfType()` method rather than hard coded codec strings
2020-04-05 13:07:50 -07:00
Steve Mayhew
232820d3e1
Add HLS support for "stpp.*" codec support for SMPTE-TT fmp4 subtitle tracks
...
ExoPlayer needs a codec to decide among WEBVTT and TTML decoder mimeType.
Apple describes IMSC1 in MP4 in
[RFC-8216 Section 3.6](https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-04#section-3.6 ).
The DASH manifest specifies the SMPTE-TT captions in the codecs in the manifest
(from W3C [TTML Profiles for Internet Media Subtitles and Captions 1.1](https://www.w3.org/TR/ttml-imsc1.1/#general-0 ).
DASH just doesn't require the rendition linking, but HLS does.
Apple implies the CODECS attribute of the variant needs to be do this. That is
with SHOULD and MAY language to imply the codec to use for it in the
[Authoring Guidelines](https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices )
This change defaults to WebVTT if no codec is specifed (same as current behavior) otherwise it picks it from the variants
referencing the media.
2020-04-03 19:41:23 -07:00
Oliver Woodman
29118f4586
Tweak release note
2020-04-04 00:21:20 +01:00
Oliver Woodman
f14c028078
Fix dump files for release
2020-04-03 22:57:06 +01:00
samrobinson
b8e6e98430
Simplify WakeLockManager
and WifiLockManager
logic.
...
Disabling reference counting allows some checks to be removed.
This is a no-op.
PiperOrigin-RevId: 299829600
2020-04-03 22:52:40 +01:00
samrobinson
83c2ca5902
Add WifiLock
management to SimpleExoPlayer
.
...
Issue:#6914
PiperOrigin-RevId: 297598910
2020-04-03 22:52:35 +01:00
samrobinson
e4e56fac09
Clean WakeLockManager.updateWakeLock
logic.
...
PiperOrigin-RevId: 284552723
2020-04-03 22:49:03 +01:00
olly
a5420a0b65
Fix release notes
...
PiperOrigin-RevId: 304196424
2020-04-01 23:04:58 +01:00
kimvde
d921491e7d
Remove thread checks in player constructor
...
SimpleExoPlayer instances don't have to be created from the application
thread.
PiperOrigin-RevId: 304190901
2020-04-01 23:04:51 +01:00
olly
38f282800c
Fix ADTS extraction with mid-stream ID3
...
PiperOrigin-RevId: 304184650
2020-04-01 23:04:36 +01:00
ibaker
d466b8c5d5
Make javadoc links point to Android docs for java.* classes
...
Before:
https://docs.oracle.com/javase/7/docs/api/index.html?java/lang/String.html
After:
https://developer.android.com/reference/java/lang/String.html
PiperOrigin-RevId: 304137011
2020-04-01 22:58:56 +01:00
ibaker
a9c4d2f9cf
Ensure javadoc fix applies to Android links with anchors
...
This means is-external=true is removed and target=_top is
set on the <a> tag.
Without this, javadoc links to framework docs with anchors are
currently broken when viewed in the "frame view" on
exoplayer.dev/doc/reference/
Before this change:
https://developer.android.com/reference/android/media/MediaDrm.html?is-external=true#getKeyRequest-byte:A-byte:A-java.lang.String-int-java.util.HashMap-
With this change:
https://developer.android.com/reference/android/media/MediaDrm.html#getKeyRequest-byte:A-byte:A-java.lang.String-int-java.util.HashMap-
PiperOrigin-RevId: 304136858
2020-04-01 22:58:48 +01:00
Oliver Woodman
c75f3f77ff
Merge pull request #7099 from matamegger:feature/fix_pssh_v1_on_firetv
...
PiperOrigin-RevId: 303937576
2020-04-01 22:58:03 +01:00
olly
dbea614cca
Fix release notes
...
PiperOrigin-RevId: 304196424
2020-04-01 22:39:12 +01:00
kimvde
c9a89bee1c
Remove thread checks in player constructor
...
SimpleExoPlayer instances don't have to be created from the application
thread.
PiperOrigin-RevId: 304190901
2020-04-01 22:39:03 +01:00
ibaker
262f19aa63
Add vertical text support to SubtitleWebView
...
PiperOrigin-RevId: 304186326
2020-04-01 22:38:54 +01:00
olly
eb65f5e20a
Fix ADTS extraction with mid-stream ID3
...
PiperOrigin-RevId: 304184650
2020-04-01 22:38:45 +01:00
ibaker
8cb7907e71
Expand Cue.line and Cue.position javadoc to cover vertical text
...
PiperOrigin-RevId: 304164078
2020-04-01 22:38:36 +01:00
ibaker
76358d983f
Base64 encode the subtitle HTML before passing to WebView.loadData
...
Without this, URL-encoding is assumed, which means ampersand-codes are
not carried through to the underlying web page correctly.
PiperOrigin-RevId: 304163733
2020-04-01 22:38:27 +01:00
ibaker
5392a2f4bc
Add non-ascii characters to SpannedToHtmlConverterTest
...
These are handled by converting to ampersand codes - add a test to show
that's explicit & deliberate.
PiperOrigin-RevId: 304163712
2020-04-01 22:38:19 +01:00
olly
6570d12c3c
Remove re-entrancy from HlsMediaChunk initialization
...
HlsSampleStreamWrapper currently calls HlsMediaChunk.init, which calls back
to HlsSampleStraemWrapper.init. This re-entrancy seems a bit confusing.
PiperOrigin-RevId: 304139462
2020-04-01 22:38:10 +01:00
ibaker
cd5ecd5c90
Make javadoc links point to Android docs for java.* classes
...
Before:
https://docs.oracle.com/javase/7/docs/api/index.html?java/lang/String.html
After:
https://developer.android.com/reference/java/lang/String.html
PiperOrigin-RevId: 304137011
2020-04-01 22:38:01 +01:00
ibaker
45186ac377
Ensure javadoc fix applies to Android links with anchors
...
This means is-external=true is removed and target=_top is
set on the <a> tag.
Without this, javadoc links to framework docs with anchors are
currently broken when viewed in the "frame view" on
exoplayer.dev/doc/reference/
Before this change:
https://developer.android.com/reference/android/media/MediaDrm.html?is-external=true#getKeyRequest-byte:A-byte:A-java.lang.String-int-java.util.HashMap-
With this change:
https://developer.android.com/reference/android/media/MediaDrm.html#getKeyRequest-byte:A-byte:A-java.lang.String-int-java.util.HashMap-
PiperOrigin-RevId: 304136858
2020-04-01 22:37:51 +01:00
aquilescanta
41853169a7
Remove loadTaskId to Loader.Callback
...
Partial rollback of ca799716b8
. We'll have to plumb
the id manually, like the rest of the LoadEventInfo
members.
PiperOrigin-RevId: 304067761
2020-04-01 22:37:43 +01:00
ibaker
802d71a5cb
Add cue positioning to SubtitleWebView
...
PiperOrigin-RevId: 303998690
2020-04-01 22:37:33 +01:00
krocard
78c103e7ea
Remove passthrough from MediaCodecInfo
...
Selection of a passthrough codec will rarely (if ever) need to be customized, so
remove this capability from MediaCodecInfo.
Applications can still customize whether passthrough is used by overriding
MediaCodecAudioRenderer.usePassthrough, which now also checks for a passthrough
codec.
#exo-offload
PiperOrigin-RevId: 303964682
2020-04-01 22:37:23 +01:00
Oliver Woodman
918172cca7
Merge pull request #7099 from matamegger:feature/fix_pssh_v1_on_firetv
...
PiperOrigin-RevId: 303937576
2020-03-31 12:35:44 +01:00
ibaker
823666587b
Replace CachedContentIndex usage of Random with SecureRandom
...
This is used to generate the initialization vector for encrypting the
cache contents.
Startblock:
<unknown commit> is submitted
and then
3w have passed
PiperOrigin-RevId: 303932151
2020-03-31 12:35:33 +01:00
ibaker
3aac5b58b8
Fix up some duplicate javadoc on Cue
...
This was messed up by me in a035c2e20a
PiperOrigin-RevId: 303930392
2020-03-31 12:35:19 +01:00
olly
b6ebd48506
Remaining thread name cleanup
...
PiperOrigin-RevId: 303829900
2020-03-31 12:35:09 +01:00
Steve Mayhew
48592071a3
Move back to UnexpectedDiscontinuityException
extending a RuntimeException
...
This avoids massive changes to method signatures to add throws. Also, took suggestion to make it an `IllegalStateException`.
Move the catch outside of the finally that sets `nextLoadPosition` (this allows for possible recovery by reseting the `Extractor` and `TimestampAdjuster`).
Lastly, took the suggestion to make a minimum value for the tolerance (especially usefull for very short i-Frame only segments).
2020-03-30 14:40:02 -07:00
olly
1f44a4db4b
Bump version to 2.11.4
...
PiperOrigin-RevId: 303776645
2020-03-30 19:27:23 +01:00
olly
151b75d831
Bump version to 2.11.4
...
PiperOrigin-RevId: 303776645
2020-03-30 19:21:09 +01:00
andrewlewis
685bb77297
Move PlaybackStatsListener to non-deprecated state events
...
PiperOrigin-RevId: 303764399
2020-03-30 19:21:00 +01:00
andrewlewis
378593f551
Add some playback tests for the IMA extension
...
These are about 5% flaky, so for now they are excluded from
continuous testing.
PiperOrigin-RevId: 303760340
2020-03-30 19:20:50 +01:00
andrewlewis
fea0acd41a
Fix PlaybackStatsListener behavior when not keeping history
...
issue:#7160
PiperOrigin-RevId: 303747338
2020-03-30 18:36:10 +01:00