From 6cce3dfb50ec29055c8a6d39774b228e98a46edd Mon Sep 17 00:00:00 2001 From: ibaker Date: Thu, 16 Dec 2021 17:20:35 +0000 Subject: [PATCH] Remove references to `MediaSourceFactory#setStreamKeys` from dev guide This method has been deprecated since 2.12.0: https://github.com/google/ExoPlayer/commit/d1bbd3507a818e14be965c300938f9d51f8b7836 PiperOrigin-RevId: 416827149 --- docs/downloading-media.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/downloading-media.md b/docs/downloading-media.md index 6bef8a25d6..a835644d85 100644 --- a/docs/downloading-media.md +++ b/docs/downloading-media.md @@ -394,9 +394,7 @@ When building the `MediaItem`, `MediaItem.playbackProperties.streamKeys` must be set to match those in the `DownloadRequest` so that the player only tries to play the subset of tracks that have been downloaded. Using `Download.request.toMediaItem` and `DownloadRequest.toMediaItem` to build the -`MediaItem` will take care of this for you. If building a `MediaSource` to pass -directly to the player, it is similarly important to configure the stream keys -by calling `MediaSourceFactory.setStreamKeys`. +`MediaItem` will take care of this for you. If you see data being requested from the network when trying to play downloaded adaptive content, the most likely cause is that the player is trying to adapt to