Class MediaSource
java.lang.Object
com.jwplayer.pub.api.media.playlists.MediaSource
- All Implemented Interfaces:
android.os.Parcelable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionintbooleanorg.json.JSONObjectgetDrm()getFile()getLabel()getType()voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Method Details
-
getFile
- Returns:
- URL to the video file, audio file, or live stream of this playlist item source.
-
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
- Returns:
- Forces a media type. Only required when a file extension is missing or not recognized (Using .php or certain tokens, for example).
-
getHttpHeaders
- Returns:
- HTTP Headers to include with requests for this media file.
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
getDrm
@Nullable public org.json.JSONObject getDrm()- Returns:
- DRM JSON for source
-