MediaItems

object MediaItems

Creates instances of MediaItem or MediaItem.Builder configured for easy use with MuxPlayer`.

Functions

Link copied to clipboard
fun builderFromMuxPlaybackId(playbackId: String, maxResolution: PlaybackResolution? = null, minResolution: PlaybackResolution? = null, renditionOrder: RenditionOrder? = null, domain: String? = MUX_VIDEO_DEFAULT_DOMAIN, playbackToken: String? = null, drmToken: String? = null): MediaItem.Builder

Creates a new MediaItem that points to a given Mux Playback ID.

Link copied to clipboard
fun fromMuxPlaybackId(playbackId: String, maxResolution: PlaybackResolution? = null, minResolution: PlaybackResolution? = null, renditionOrder: RenditionOrder? = null, domain: String? = MUX_VIDEO_DEFAULT_DOMAIN, playbackToken: String? = null, drmToken: String? = null): MediaItem

Creates a new MediaItem that points to a given Mux Playback ID.