Remove references to MediaSourceFactory#setStreamKeys from dev guide

This method has been deprecated since 2.12.0:
d1bbd3507a

PiperOrigin-RevId: 416827149
This commit is contained in:
ibaker 2021-12-16 17:20:35 +00:00 committed by Ian Baker
parent c1f878deb1
commit 6cce3dfb50

View file

@ -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 set to match those in the `DownloadRequest` so that the player only tries to
play the subset of tracks that have been downloaded. Using play the subset of tracks that have been downloaded. Using
`Download.request.toMediaItem` and `DownloadRequest.toMediaItem` to build the `Download.request.toMediaItem` and `DownloadRequest.toMediaItem` to build the
`MediaItem` will take care of this for you. If building a `MediaSource` to pass `MediaItem` will take care of this for you.
directly to the player, it is similarly important to configure the stream keys
by calling `MediaSourceFactory.setStreamKeys`.
If you see data being requested from the network when trying to play downloaded 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 adaptive content, the most likely cause is that the player is trying to adapt to