Clarify the priority of live config values in the dev guide

PiperOrigin-RevId: 449485592
This commit is contained in:
ibaker 2022-05-18 16:12:33 +01:00 committed by Ian Baker
parent aef2f154a7
commit cfaf39c82c

View File

@ -84,11 +84,12 @@ ExoPlayer uses some parameters to control the offset of the playback position
from the live edge, and the range of playback speeds that can be used to from the live edge, and the range of playback speeds that can be used to
adjust this offset. adjust this offset.
By default, ExoPlayer reads values for these parameters directly from the media. ExoPlayer gets values for these parameters from three places, in descending
These values can also be provided per `MediaItem`, by calling order of priority (the first value found is used):
`MediaItem.Builder.setLiveConfiguration`, or set globally on the
`DefaultMediaSourceFactory` provided to the player. In both cases, the provided * Per `MediaItem` values passed to `MediaItem.Builder.setLiveConfiguration`.
values will override parameters defined by the media. * Global default values set on `DefaultMediaSourceFactory`.
* Values read directly from the media.
~~~ ~~~
// Global settings. // Global settings.