Class MediaSource

java.lang.Object
com.jwplayer.pub.api.media.playlists.MediaSource

public class MediaSource extends Object
  • Field Details

    • CREATOR

      public static final <any> CREATOR
  • Method Details

    • getFile

      public String getFile()
      Returns:
      URL to the video file, audio file, or live stream of this playlist item source.
    • getLabel

      public 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

      public Map<String,String> getHttpHeaders()
      Returns:
      HTTP Headers to include with requests for this media file.
    • describeContents

      public int describeContents()
    • writeToParcel

      public void writeToParcel(Parcel dest, int flags)
    • getDrm

      public JSONObject getDrm()
      Returns:
      DRM JSON for source