olly
0ed7ddecd7
Reduce the number of cache files
...
- Increase the default cache file size to 5MB
- Recommended a minimum cache file size of 2MB to discourage
applications from specifying values small enough such that
unreasonably large numbers of cache files are generated
- Allow maxCacheFileSize=C.LENGTH_UNSET, equivalent to setting it
to MAX_VALUE. This is just for API consistency with other APIs
we have that accept LENGTH_UNSET
Issue: #4253
PiperOrigin-RevId: 227524233
2019-01-08 07:32:51 +00:00
olly
ae65bcecd4
Move syncFileDescriptor to use an experimental method
...
PiperOrigin-RevId: 227520168
2019-01-08 07:32:41 +00:00
andrewlewis
1e99224019
Remove AdsLoader listeners on releasing ImaAdsLoader
...
Issue: #4114
PiperOrigin-RevId: 227516509
2019-01-08 07:32:31 +00:00
olly
3a9557c72f
Don't pass maxCacheFileSize to CacheEvictor if real size is unknown
...
CacheEvictor.onStartFile currently receives a length, which is the
maximum size of the content that might be written. The LRU cache
evictor will make sure there's sufficient space for the specified
size. If the actual size of the content is unknown, CacheDataSink
passes maxCacheFileSize.
The current behavior isn't ideal. It seems valid for a developer to
specify maxCacheFileSize=Long.MAX_VALUE if they don't want any
file fragmentation in the cache. However if they then attempt to
cache something with unknown length, LRU cache will try and make
room for content of length Long.MAX_VALUE, and end up evicting the
entire cache to do so.
This change alters the logic so a length is only passed if the
actual size of the content is known. In other cases C.LENGTH_UNSET
is now passed. The LRU evictor will not evict until after the file
is committed. Note a custom LRU evictor could still opt to evict to
ensure some application specified amount of space, if that's the
desired behavior.
PiperOrigin-RevId: 227509525
2019-01-08 07:32:21 +00:00
olly
243b12f37e
Remove stray word
...
PiperOrigin-RevId: 227500707
2019-01-08 07:32:10 +00:00
andrewlewis
fc6a1ea522
Handle rectangular rotation projections in Matroska
...
See also https://github.com/Matroska-Org/matroska-specification/issues/269 .
PiperOrigin-RevId: 226758584
2019-01-08 07:31:59 +00:00
tonihei
9728ac54ba
Improve doc for setKeepContentOnPlayerReset.
...
This also applies when seeking or transitioning to unprepared media, which
isn't clear from the current documentation.
Issue:#5267
PiperOrigin-RevId: 226486685
2019-01-08 07:31:49 +00:00
eguven
3c0107752a
Add STOPPED state to DownloadManager
...
PiperOrigin-RevId: 226460891
2019-01-08 07:31:39 +00:00
olly
173f36897b
Update release notes
...
PiperOrigin-RevId: 226459209
2019-01-08 07:31:28 +00:00
ybai001
ae40208d92
Add AC-4 format support
...
* Add AC-4 MIME type definition
* Add AC-4 format support in Mp4Extractor and TsExtractor
* Add AC-4 Extractor
* Add AC-4 playback support in MPEG-4, MPEG-DASH, TS and HLS
2018-12-26 16:53:37 +08:00
Oliver Woodman
71f72c5953
Merge pull request #5283 from google/dev-v2-r2.9.3
...
r2.9.3
2018-12-21 14:13:59 +00:00
olly
f042ae4cf3
Don't write CachedContentIndex to disk on key removal
...
Issue: #5136
PiperOrigin-RevId: 224857629
2018-12-20 21:41:47 +00:00
olly
c73c6f2013
Bump for 2.9.3
...
PiperOrigin-RevId: 226356810
2018-12-20 21:18:41 +00:00
olly
f4d741a565
Bump for 2.9.3
...
PiperOrigin-RevId: 226356810
2018-12-20 21:14:04 +00:00
olly
a16f4aec90
Fix out of data Javadoc
...
PiperOrigin-RevId: 226356758
2018-12-20 21:13:52 +00:00
andrewlewis
d3ecbf75b2
Fix buffer size for renderers with TRACK_TYPE_NONE
...
This includes NoSampleRenderers.
PiperOrigin-RevId: 226323693
2018-12-20 21:13:42 +00:00
andrewlewis
bad8ec5952
Relax audio decoder capability checks
...
Issue: #5145
PiperOrigin-RevId: 226297129
2018-12-20 12:44:18 +00:00
Oliver Woodman
4ccfa6f068
Fix buffer size for renderers with TRACK_TYPE_NONE
...
This includes NoSampleRenderers.
2018-12-20 12:31:20 +00:00
Oliver Woodman
6060b8113d
Relax audio decoder capability checks
...
Issue: #5145
2018-12-19 22:01:20 +00:00
aquilescanta
f6165f753c
Mitigate the need for FLAG_ALLOW_NON_IDR_KEYFRAMES
...
Use random access indicator in transport streams
Issue:#1967
Issue:#2020
Issue:#2182
Issue:#2469
Issue:#2581
Issue:#2748
Issue:#2939
Issue:#2979
Issue:#3316
Issue:#3574
Issue:#3709
Issue:#3747
Issue:#4103
Issue:#4184
Issue:#4355
Issue:#4538
Issue:#4719
Issue:#4861
Issue:#4925
Issue:#4951
Issue:#5108
Issue:#5186
PiperOrigin-RevId: 225798044
2018-12-19 21:56:58 +00:00
Oliver Woodman
7426c14b2a
Update release notes
2018-12-19 21:55:12 +00:00
Oliver Woodman
fa82004fa3
Merge pull request #5066 from szaboa:feature/1583_support_png_ttml
...
PiperOrigin-RevId: 225531695
2018-12-19 21:51:36 +00:00
olly
ca9ecaa448
Blacklist OMX.SEC.mp3.dec for more devices
...
Issue #4519
PiperOrigin-RevId: 226205245
2018-12-19 21:50:26 +00:00
andrewlewis
975ed6c277
Use the true bitrate for CBR MP3 seeking
...
PiperOrigin-RevId: 225989898
2018-12-19 21:50:14 +00:00
Oliver Woodman
78cdd5fee1
Merge pull request #5216 from mseroczynski:dev-v2
...
PiperOrigin-RevId: 225966289
2018-12-19 21:49:48 +00:00
olly
abdb58485f
Add Player.MetadataComponent for completeness
...
PiperOrigin-RevId: 225795581
2018-12-19 21:49:21 +00:00
olly
f41dadca58
Remove unused interface method
...
PiperOrigin-RevId: 225528632
2018-12-19 21:49:14 +00:00
andrewlewis
479841f65f
Add Nexus Player to output surface workaround
...
PiperOrigin-RevId: 225383173
2018-12-19 21:49:08 +00:00
olly
e7e2cbdc90
Add missing ..
...
PiperOrigin-RevId: 225379305
2018-12-19 21:49:02 +00:00
olly
fd6874809a
Clarify that the shutter can prevent flicker
...
PiperOrigin-RevId: 225374071
2018-12-19 21:48:57 +00:00
olly
942ac78a0c
Add 4K Bravia to output surface workaroud
...
PiperOrigin-RevId: 225344232
2018-12-19 21:48:49 +00:00
Oliver Woodman
1851d5e193
Merge pull request #5245 from natario1:videosize-override
...
PiperOrigin-RevId: 225187852
2018-12-19 21:48:41 +00:00
olly
84ad3f7b66
Fix release notes
...
PiperOrigin-RevId: 225170404
2018-12-19 21:48:28 +00:00
olly
db5083d18a
Enable setOutputSurfaceWorkaround for dangal
...
Issue: #5169
PiperOrigin-RevId: 225025357
2018-12-19 21:48:10 +00:00
eguven
be2942cee3
Apply EOS flush workaround to stvm8 devices
...
Issue:#5203
PiperOrigin-RevId: 224726041
2018-12-19 21:47:14 +00:00
tonihei
0e139e9945
Use media source tag in dummy timeline.
...
This is now possible as it's directly accessible from the media source.
Issue:#5177
Issue:#5155
PiperOrigin-RevId: 224321917
2018-12-19 21:47:02 +00:00
andrewlewis
ee1ec8d3d6
Disable post processing on Nvidia devices
...
PiperOrigin-RevId: 224291309
2018-12-19 21:46:52 +00:00
Oliver Woodman
5f33c7fcf5
Merge pull request #5187 from BrainCrumbz:feat/get-tag
...
PiperOrigin-RevId: 224166374
2018-12-19 21:40:35 +00:00
tonihei
ddda2eef7e
Add no-op defaults to Video(Audio)RendererEventListener.
...
This is in line with how Player.EventListener and AnalyticsListener methods are
defined and helps to only implement the callbacks needed.
PiperOrigin-RevId: 223991262
2018-12-19 21:36:00 +00:00
olly
4f8b098307
Blacklist OMX.SEC.mp3.dec for more devices
...
Issue #4519
PiperOrigin-RevId: 226205245
2018-12-19 21:29:27 +00:00
Oliver Woodman
be2636c365
Merge pull request #4993 from saschpe:icy
...
PiperOrigin-RevId: 226031838
2018-12-18 19:46:54 +00:00
andrewlewis
0e8e9621c0
Use the true bitrate for CBR MP3 seeking
...
PiperOrigin-RevId: 225989898
2018-12-18 19:46:43 +00:00
eguven
ee2e89e0cd
Remove DownloadManager Download interim state when created
...
When a Download is created it's set to queued state but doesn't notify
listeners about this state. DownloadManager checks if it can start the
download. After this checks it notifies the listeners.
With this change Download can immediately check if it can be started and
sends correct notification.
PiperOrigin-RevId: 225967129
2018-12-18 19:46:33 +00:00
Oliver Woodman
4d282b2278
Merge pull request #5216 from mseroczynski:dev-v2
...
PiperOrigin-RevId: 225966289
2018-12-18 19:46:23 +00:00
eguven
3dc72a690c
Remove targetState in DownloadManager.Download
...
PiperOrigin-RevId: 225849846
2018-12-18 19:46:08 +00:00
eguven
3d6707e2c4
Don't create Downloads until DownloadManager is initialized
...
PiperOrigin-RevId: 225824428
2018-12-18 19:45:58 +00:00
aquilescanta
f4fd3b12e6
Handle failure to get Cast context more gracefully
...
Issue:#4160
Issue:#4743
PiperOrigin-RevId: 225813243
2018-12-18 19:45:48 +00:00
aquilescanta
768f48e1d9
Update the Cast framework dependency
...
PiperOrigin-RevId: 225812585
2018-12-18 19:45:39 +00:00
tonihei
ee14b1fa40
Add test for SsMediaPeriod.getStreamKeys
...
PiperOrigin-RevId: 225811310
2018-12-18 19:45:29 +00:00
aquilescanta
8202cb2d2a
Mitigate the need for FLAG_ALLOW_NON_IDR_KEYFRAMES
...
Use random access indicator in transport streams
Issue:#1967
Issue:#2020
Issue:#2182
Issue:#2469
Issue:#2581
Issue:#2748
Issue:#2939
Issue:#2979
Issue:#3316
Issue:#3574
Issue:#3709
Issue:#3747
Issue:#4103
Issue:#4184
Issue:#4355
Issue:#4538
Issue:#4719
Issue:#4861
Issue:#4925
Issue:#4951
Issue:#5108
Issue:#5186
PiperOrigin-RevId: 225798044
2018-12-18 19:45:18 +00:00