From cfaf39c82cbfae4f3e780f0baa6b5646f612604b Mon Sep 17 00:00:00 2001 From: ibaker Date: Wed, 18 May 2022 16:12:33 +0100 Subject: [PATCH] Clarify the priority of live config values in the dev guide PiperOrigin-RevId: 449485592 --- docs/live-streaming.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/live-streaming.md b/docs/live-streaming.md index 1dc78fe216..d0b2005ff8 100644 --- a/docs/live-streaming.md +++ b/docs/live-streaming.md @@ -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 adjust this offset. -By default, ExoPlayer reads values for these parameters directly from the media. -These values can also be provided per `MediaItem`, by calling -`MediaItem.Builder.setLiveConfiguration`, or set globally on the -`DefaultMediaSourceFactory` provided to the player. In both cases, the provided -values will override parameters defined by the media. +ExoPlayer gets values for these parameters from three places, in descending +order of priority (the first value found is used): + +* Per `MediaItem` values passed to `MediaItem.Builder.setLiveConfiguration`. +* Global default values set on `DefaultMediaSourceFactory`. +* Values read directly from the media. ~~~ // Global settings.