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
jaewan
94ca84ff29
Allow developers to specify CharSequence for Notification strings
...
CharSequence is used by Notification builders and allows to set Spannable text.
It's the base interface of the String class, so apps wouldn't be break after
the update.
PiperOrigin-RevId: 303731890
2020-03-30 18:36:10 +01:00
olly
f0e734d33e
Workaround C2 AAC decoder flush problem on Android 10
...
Issue: #6671
PiperOrigin-RevId: 303364788
2020-03-30 18:36:07 +01:00
olly
69ca534935
Parse opus gain correctly as a signed value
...
Issue: #7046
PiperOrigin-RevId: 303354941
2020-03-30 18:31:24 +01:00
olly
a9cbbf91c3
Skip aliases of other codecs
...
- They are always listed with their canonical names
- Considering aliases means that blacklisting a decoder can end up
not actually blacklisting it, since it may still be accessible
via an alias. It also means that our decoder fallback logic can
end up falling back to a decoder that we've already tried!
PiperOrigin-RevId: 303348297
2020-03-30 18:31:24 +01:00
olly
0a5a3cbf46
Handle orientation changes in GL demo
...
Issue: #7141
PiperOrigin-RevId: 303334072
2020-03-30 18:31:24 +01:00
olly
3fd7d214cd
Consistency fixes for FFmpeg extension instructions
...
PiperOrigin-RevId: 303316976
2020-03-30 18:31:24 +01:00
ibaker
c9f28086db
Make milliseconds optional in SubRip (SRT) subtitles
...
issue:#7122
PiperOrigin-RevId: 303154493
2020-03-30 18:31:24 +01:00
olly
a038346ecc
Resample float audio to 16-bit by default to enable audio processing
...
This is less confusing than having audio processing functionality (e.g., playback
speed adjustment) just "not work" for some pieces of media.
If this change is merged, I will update #6749 to also track making DefaultAudioSink
intelligently enable/disable float output depending on how the audio processors are
configured.
Issue: #7134
PiperOrigin-RevId: 302871568
2020-03-30 18:31:24 +01:00
olly
ddc98334e0
DefaultAudioSink: Fix issue if last processor is not active
...
It's incorrect to use an AudioFormat returned from AudioProcessor.configure
unless the AudioProcessor is active.
Issue: #7134
PiperOrigin-RevId: 302674132
2020-03-30 18:31:24 +01:00
olly
54c608481b
Support 32-bit FP to 16-bit Int audio resampling
...
This is a no-op for DefaultAudioSink for now, because DefaultAudioSink
currently disables processing anyway if the input uses ENCODING_PCM_FLOAT.
Issue: #7134
PiperOrigin-RevId: 302670534
2020-03-30 18:31:24 +01:00
olly
2094c7491b
WAV: Don't read past data end position
...
Issue: #7129
PiperOrigin-RevId: 302660343
2020-03-30 18:31:24 +01:00
olly
1d6bd0de15
MP4 edit lists: Use floor rather than ceil to find first sample
...
If the start time of the edit falls within a sample, start from that
sample rather than the next one. This ensures playback can start from
the correct point if the sample is a keyframe, rather than having to
start from the next one.
Issue: #7133
PiperOrigin-RevId: 302639115
2020-03-30 18:31:24 +01:00
ibaker
d18292c9c9
Allow missing hours in SubRip (.srt) subtitle timecodes
...
Add a test for this case, and extend the existing tests to ensure the
hour is parsed when it's present.
issue:#7122
PiperOrigin-RevId: 302472213
2020-03-30 18:31:23 +01:00
krocard
cac36be6eb
Conserve ByteOrder when growingDecoderInputBuffer
...
#exo-offload
PiperOrigin-RevId: 302403507
2020-03-30 18:31:23 +01:00
olly
b67d79d775
Request storage permission if missing
...
PiperOrigin-RevId: 302345647
2020-03-30 18:31:20 +01:00
olly
a39715d323
Improve logging
...
- Make sure logging of UnknownHostException indicates the failure reason
- Indent stack traces inside event blocks in EventLogger
- Don't log media URLs
PiperOrigin-RevId: 302007601
2020-03-30 18:27:14 +01:00
Oliver Woodman
dd4a732303
Merge pull request #7098 from matamegger:feature/webvtt_negative_media_timestamp
...
PiperOrigin-RevId: 301996778
2020-03-30 18:27:14 +01:00