Class TrackLoader
java.lang.Object
com.castlabs.sdk.downloader.v3retrofit.TrackLoader
Deprecated.
Used only to migrate not completed v3.x.x downloads to v4.x.x
DASH and SmoothStreaming track loader used in SDK v3.x.x.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAudioTrackList
(com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest, int periodIndex) Deprecated.Loads audio tracks from the given DASH manifestgetAudioTrackList
(com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest smoothManifest) Deprecated.Loads audio tracks from the given SmoothStreaming manifestgetTextTrackList
(com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest, int periodIndex) Deprecated.Loads text tracks from the given DASH manifestgetTextTrackList
(com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest smoothManifest) Deprecated.Loads video tracks from the given SmoothStreaming manifestgetVideoTrackList
(com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest, boolean removeHdContent, int periodIndex) Deprecated.Loads video tracks from the given DASH manifestgetVideoTrackList
(com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest smoothManifest, boolean removeHdContent) Deprecated.Loads video tracks from the given SmoothStreaming manifest
-
Constructor Details
-
TrackLoader
public TrackLoader()Deprecated.
-
-
Method Details
-
getVideoTrackList
@NonNull public List<VideoTrack> getVideoTrackList(@NonNull com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest, boolean removeHdContent, int periodIndex) Deprecated.Loads video tracks from the given DASH manifest- Parameters:
dashManifest
- DASH manifestremoveHdContent
- flag whether to remove HD contentperiodIndex
- period index- Returns:
- list of video tracks
-
getAudioTrackList
@NonNull public List<AudioTrack> getAudioTrackList(@NonNull com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest, int periodIndex) Deprecated.Loads audio tracks from the given DASH manifest- Parameters:
dashManifest
- DASH manifestperiodIndex
- period index- Returns:
- list of audio tracks
-
getTextTrackList
@NonNull public List<SubtitleTrack> getTextTrackList(@NonNull com.google.android.exoplayer2.source.dash.manifest.DashManifest dashManifest, int periodIndex) Deprecated.Loads text tracks from the given DASH manifest- Parameters:
dashManifest
- DASH manifestperiodIndex
- period index- Returns:
- list of text tracks
-
getVideoTrackList
@NonNull public List<VideoTrack> getVideoTrackList(@NonNull com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest smoothManifest, boolean removeHdContent) Deprecated.Loads video tracks from the given SmoothStreaming manifest- Parameters:
smoothManifest
- SmoothStreaming manifestremoveHdContent
- flag whether to remove HD content- Returns:
- list of video tracks
-
getAudioTrackList
@NonNull public List<AudioTrack> getAudioTrackList(@NonNull com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest smoothManifest) Deprecated.Loads audio tracks from the given SmoothStreaming manifest- Parameters:
smoothManifest
- SmoothStreaming manifest- Returns:
- list of audio tracks
-
getTextTrackList
@NonNull public List<SubtitleTrack> getTextTrackList(@NonNull com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest smoothManifest) Deprecated.Loads video tracks from the given SmoothStreaming manifest- Parameters:
smoothManifest
- SmoothStreaming manifest- Returns:
- list of text tracks
-