Class MediaSource
- java.lang.Object
-
- com.jwplayer.pub.api.media.playlists.MediaSource
-
- All Implemented Interfaces:
android.os.Parcelable
public class MediaSource extends java.lang.Object implements android.os.Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaSource.Builder
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<MediaSource>
CREATOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
getDefault()
java.lang.String
getFile()
java.util.Map<java.lang.String,java.lang.String>
getHttpHeaders()
java.lang.String
getLabel()
MediaType
getType()
void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<MediaSource> CREATOR
-
-
Method Detail
-
getFile
@Nullable public java.lang.String getFile()
- Returns:
- URL to the video file, audio file, or live stream of this playlist item source.
-
getLabel
@Nullable public java.lang.String getLabel()
- Returns:
- Label of the media source, displayed in the manual quality selection menu. Set this if you have more than 2 qualities of your video.
-
getDefault
public boolean getDefault()
- Returns:
- Set this to true for the media source you want to play on startup. If this isn't set for any source, the first one is used
-
getType
public MediaType getType()
- Returns:
- Forces a media type. Only required when a file extension is missing or not recognized (Using .php or certain tokens, for example).
-
getHttpHeaders
@Nullable public java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
- Returns:
- HTTP Headers to include with requests for this media file.
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-