mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Update MediaSourceFactory javadoc
Remove references to deprecated methods. I didn't replace the DRM info with references to non-deprecated methods because I'm not sure it belongs at class level. The methods themselves are already documented in detail. PiperOrigin-RevId: 370421087
This commit is contained in:
parent
2b582b540a
commit
d8ff0210ac
1 changed files with 1 additions and 19 deletions
|
|
@ -31,25 +31,7 @@ import com.google.android.exoplayer2.upstream.HttpDataSource;
|
|||
import com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Factory for creating {@link MediaSource}s from URIs.
|
||||
*
|
||||
* <h3>DrmSessionManager creation for protected content</h3>
|
||||
*
|
||||
* <p>In case a {@link DrmSessionManager} is passed to {@link
|
||||
* #setDrmSessionManager(DrmSessionManager)}, it will be used regardless of the drm configuration of
|
||||
* the media item.
|
||||
*
|
||||
* <p>For a media item with a {@link MediaItem.DrmConfiguration}, a {@link DefaultDrmSessionManager}
|
||||
* is created based on that configuration. The following setter can be used to optionally configure
|
||||
* the creation:
|
||||
*
|
||||
* <ul>
|
||||
* <li>{@link #setDrmHttpDataSourceFactory(HttpDataSource.Factory)}: Sets the data source factory
|
||||
* to be used by the {@link HttpMediaDrmCallback} for network requests (default: {@link
|
||||
* DefaultHttpDataSourceFactory}).
|
||||
* </ul>
|
||||
*/
|
||||
/** Factory for creating {@link MediaSource MediaSources} from {@link MediaItem MediaItems}. */
|
||||
public interface MediaSourceFactory {
|
||||
|
||||
/** @deprecated Use {@link MediaItem.PlaybackProperties#streamKeys} instead. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue