PlayerBuilder

open class PlayerBuilder

Builder that constructs a com.quickplay.vstb7.player.Player instance that plays a single media content.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun build(platformContext: PlatformContext): Player

Builds a Player instance based on the supplied builder params.

Link copied to clipboard

Configures download identifier for the content.

Link copied to clipboard

Configures valid URL to retrieve DRM License.

Link copied to clipboard

Configures DRMScheme of the passed drmLicenseURL.

Link copied to clipboard
Link copied to clipboard
fun excludeMediaSession(excludeMediaSession: Boolean): PlayerBuilder

Indicates whether the media session should be excluded from creation. By default, QP Player is pre-integrated with MediaSession to ensure compliance with system media controls and voice control features like Google Assistant.

Link copied to clipboard

Configures Logger used for call tracing.

Link copied to clipboard

Configures the MediaMetadata associated with the playback.

Link copied to clipboard

Configures MediaType of the passed mediaURL.

Link copied to clipboard

Configures valid URL to retrieve the content itself (or) it's manifest.

Link copied to clipboard
fun networkStack(networkStack: NetworkStack = NetworkStack.BUILT_IN): PlayerBuilder

Configures the NetworkStack to be used for the playback. Default value is NetworkStack.BUILT_IN.

Link copied to clipboard

Configures PlaybackProperties to apply for playback customization/optimization.

Link copied to clipboard
fun preferredAudioMimeTypes(preferredAudioMimeTypes: Array<String>): PlayerBuilder

Represents the order of preference for various audio MIME types. Ex: aac, ec3, ac3, etc. Use MimeTypes for all possible values.

Link copied to clipboard
fun preferredVideoMimeTypes(preferredVideoMimeTypes: Array<String>): PlayerBuilder

Represents the order of preference for various video MIME types. Ex: avc, hevc, etc. Use MimeTypes for all possible values.

Link copied to clipboard

Enables/disables repeated playback when stream reaches the end.

Link copied to clipboard

Set the seeking behaviour of the player.

Link copied to clipboard

Set custom headers used by the Player when media source connection is made.

Link copied to clipboard

Set Decoder Configuration to configure Player's decoder

Link copied to clipboard

Set the surface to render the video into.

Link copied to clipboard

Set the view to render the video into.

Link copied to clipboard
fun thumbnailPreviewProperties(thumbnailPreviewEndpointUrl: String, maxConcurrentThumbnailDownloads: Int? = null, thumbnailPreviewConfig: ThumbnailPreviewConfig? = null): PlayerBuilder

Configures parameters for Thumbnail Preview functionality.

Link copied to clipboard

Configures User-Agent string.