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: <Error class: unknown class>): Player

Builds a Player instance based on the supplied builder params.

Link copied to clipboard
fun downloadID(id: String): <Error class: unknown class>

Configures download identifier for the content.

Link copied to clipboard
fun drmLicenseURL(url: String): <Error class: unknown class>

Configures valid URL to retrieve DRM License.

Link copied to clipboard
fun drmScheme(scheme: DRMScheme): <Error class: unknown class>

Configures DRMScheme of the passed drmLicenseURL.

Link copied to clipboard
fun enableSecurityChecks(policies: List<Int>? = null): <Error class: unknown class>
Link copied to clipboard
fun excludeMediaSession(excludeMediaSession: Boolean): <Error class: unknown class>

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
fun logger(logger: Logger): <Error class: unknown class>

Configures Logger used for call tracing.

Link copied to clipboard
fun mediaMetadata(mediaMetadata: MediaMetadata): <Error class: unknown class>

Configures the MediaMetadata associated with the playback.

Link copied to clipboard
fun mediaType(type: MediaType): <Error class: unknown class>

Configures MediaType of the passed mediaURL.

Link copied to clipboard
fun mediaURL(url: String): <Error class: unknown class>

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

Link copied to clipboard
fun networkStack(networkStack: NetworkStack = NetworkStack.BUILT_IN): <Error class: unknown class>

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

Link copied to clipboard
fun playbackProperties(properties: PlaybackProperties): <Error class: unknown class>

Configures PlaybackProperties to apply for playback customization/optimization.

Link copied to clipboard
fun preferredAudioMimeTypes(preferredAudioMimeTypes: Array<String>): <Error class: unknown class>

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>): <Error class: unknown class>

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

Link copied to clipboard
fun repeatPlaybackOnStreamEnd(repeatPlayback: Boolean): <Error class: unknown class>

Enables/disables repeated playback when stream reaches the end.

Link copied to clipboard
fun seekPreference(seekPreference: SeekPreference): <Error class: unknown class>

Sets the seeking behaviour of the player.

Link copied to clipboard
fun setCustomHeaders(customHeaders: Map<String, String>?): <Error class: unknown class>

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

Link copied to clipboard
fun setDecoderConfiguration(decoderConfiguration: DecoderConfiguration): <Error class: unknown class>

Sets DecoderConfiguration to configure Player's decoder.

Link copied to clipboard
fun setRenderingSurface(surface: Surface): <Error class: unknown class>

Sets the surface to render the video into.

Link copied to clipboard
fun setRenderingView(view: View): <Error class: unknown class>

Sets the view to render the video into.

Link copied to clipboard
fun thumbnailPreviewProperties(thumbnailPreviewEndpointUrl: String, maxConcurrentThumbnailDownloads: Int? = null, thumbnailPreviewConfig: ThumbnailPreviewConfig? = null): <Error class: unknown class>

Configures parameters for Thumbnail Preview functionality.

Link copied to clipboard
fun userAgent(agent: String): <Error class: unknown class>

Configures User-Agent string.