Package com.castlabs.android.player
Class ExternalSourceSelector.SourceData
java.lang.Object
com.castlabs.android.player.ExternalSourceSelector.SourceData
- Enclosing interface:
ExternalSourceSelector
Source (CDN) data container
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe manifest URL for the source (CDN) fallback.The type of the source (CDN) fallback. -
Constructor Summary
ConstructorsConstructorDescriptionSourceData(ExternalSourceSelector.SwitchType switchType, String manifestUrl) Source (CDN) with specifiedExternalSourceSelector.SwitchTypeand manifest URLSourceData(String manifestUrl) Source (CDN) withExternalSourceSelector.SwitchType.Autoand specified manifest URL -
Method Summary
Modifier and TypeMethodDescriptioncom.google.android.exoplayer2.source.MediaSource.SourceErrorListener.SourceDataconvert()Converts this SourceData to a MediaSource.SourceErrorListener.SourceData instance.
-
Field Details
-
switchType
The type of the source (CDN) fallback. -
manifestUrl
The manifest URL for the source (CDN) fallback.
-
-
Constructor Details
-
SourceData
Source (CDN) withExternalSourceSelector.SwitchType.Autoand specified manifest URL- Parameters:
manifestUrl- The specified manifest fallback URL
-
SourceData
public SourceData(@NonNull ExternalSourceSelector.SwitchType switchType, @NonNull String manifestUrl) Source (CDN) with specifiedExternalSourceSelector.SwitchTypeand manifest URL- Parameters:
switchType- TheExternalSourceSelector.SwitchTypemanifestUrl- The specified manifest fallback URL
-
-
Method Details
-
convert
@NonNull public com.google.android.exoplayer2.source.MediaSource.SourceErrorListener.SourceData convert()Converts this SourceData to a MediaSource.SourceErrorListener.SourceData instance.- Returns:
- a MediaSource.SourceErrorListener.SourceData instance
-