@Deprecated
public class SourceConfiguration
extends Configuration
Contains configuration values regarding the media which should be played back by the player.
@JvmField @NotNull public static android.os.Parcelable.Creator<com.bitmovin.player.config.media.SourceConfiguration> CREATOR
public static com.bitmovin.player.config.media.SourceConfiguration.Companion Companion
public SourceConfiguration()
protected SourceConfiguration(@NotNull
android.os.Parcel parcel)
@NotNull public PlaybackType getPlaybackType()
The enum PlaybackType of this class SourceConfiguration.
Default value is PlaybackType.SEQUENTIAL.
enum PlaybackType,
class SourceConfigurationpublic void setPlaybackType(@NotNull
PlaybackType p)
The enum PlaybackType of this class SourceConfiguration.
Default value is PlaybackType.SEQUENTIAL.
enum PlaybackType,
class SourceConfiguration@Deprecated public boolean getRepeatAll()
Defines if all class SourceItems should be repeated.
Default value is false.
class SourceItempublic void setRepeatAll(boolean p)
Defines if all class SourceItems should be repeated.
Default value is false.
class SourceItempublic double getStartOffset()
The position where the stream should be started.
Number can be positive or negative depending on the used enum TimelineReferencePoint.
Invalid numbers will be corrected according to the stream boundaries.
For VOD this is applied at the time the stream is loaded, for LIVE when the playback starts. Default value: 0.0
enum TimelineReferencePointpublic void setStartOffset(double p)
The position where the stream should be started.
Number can be positive or negative depending on the used enum TimelineReferencePoint.
Invalid numbers will be corrected according to the stream boundaries.
For VOD this is applied at the time the stream is loaded, for LIVE when the playback starts. Default value: 0.0
enum TimelineReferencePoint@Nullable public TimelineReferencePoint getStartOffsetTimelineReference()
Timeline reference point to calculate SourceConfiguration.startOffset from.
Default for live: TimelineReferencePoint.END
Default for VOD: TimelineReferencePoint.START
SourceConfiguration.startOffsetpublic void setStartOffsetTimelineReference(@Nullable
TimelineReferencePoint p)
Timeline reference point to calculate SourceConfiguration.startOffset from.
Default for live: TimelineReferencePoint.END
Default for VOD: TimelineReferencePoint.START
SourceConfiguration.startOffset@Nullable public SourceItem getFirstSourceItem()
The first class SourceItem in this class SourceConfiguration.
If no class SourceItem was added, null will be returned.
public void addSourceItem(@NotNull
java.lang.String url)
Adds a new source item based on the provided url to this class SourceConfiguration.
url - The url to a DASH, HLS or Progressive MP4 source which is used to create a newclass SourceItem which is then added to this class SourceConfiguration.class SourceConfigurationpublic void addSourceItem(@NotNull
SourceItem sourceItem)
Adds a new source item to this class SourceConfiguration.
sourceItem - The new class SourceItem to be added to this class SourceConfiguration.class SourceConfigurationpublic void removeSourceItem(@NotNull
SourceItem sourceItem)
Removes the given class SourceItem from this class SourceConfiguration.
sourceItem - The class SourceItem to be removed.class SourceItem,
class SourceConfigurationpublic boolean isRepeatAll()
Returns if all class SourceItems will be repeated.
class SourceItems will be repeated, else false.class SourceItempublic int describeContents()
public void writeToParcel(@NotNull
android.os.Parcel dest,
int flags)