Class MediaSource.Builder
java.lang.Object
com.jwplayer.pub.api.media.playlists.MediaSource.Builder
- Enclosing class:
- MediaSource
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
file
- Parameters:
file
- URL to the video file, audio file, or live stream of this playlist item source.
-
drm
- Parameters:
drm
- a JSONObject containing the DRM info for the source
-
label
- Parameters:
label
- Label of the media source, displayed in the manual quality selection menu. Set this if you have more than 2 qualities of your video.
-
isDefault
- Parameters:
_default
- 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
-
type
- Parameters:
type
- Forces a media type. Only required when a file extension is missing or not recognized (Using .php or certain tokens, for example).
-
httpHeaders
- Parameters:
httpHeaders
- HTTP Headers to include with requests for this media file.
-
build
-