Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun build(platformContext: <Error class: unknown class>): Player

Builds a Player instance based on the supplied builder params.

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

Sets custom headers used by Player's data source when making HTTP requests. By default it is null.

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

SetsDecoderConfiguration to configure Player's decoder.

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 isPlayerForHeadUnit(isPlayerForHeadUnit: Boolean = false): <Error class: unknown class>

This flag should be set if the auto head unit creates QPPlayer and listen to its event to use the Bookmark, Heartbeat capabilities.

Link copied to clipboard
fun logger(logger: Logger): <Error class: unknown class>

Configures Logger used for call tracing.

Link copied to clipboard
fun mediaPlaylistItem(mediaPlaylistItem: MediaPlaylistItem): <Error class: unknown class>

Sets initial MediaPlaylistItem. Additional MediaPlaylistItems can be added using Player's MediaPlaylistControllable API.

Link copied to clipboard
fun mediaPlaylistItems(mediaPlaylistItems: List<MediaPlaylistItem>, playlistPreloadConfiguration: PlaylistPreloadConfiguration? = null): <Error class: unknown class>

Sets collection of MediaPlaylistItems used for sequential playback with optional PlaylistPreloadConfiguration. When the PlaylistPreloadConfiguration.preloadingDurationMs is specified and greater than DEFAULT_LONG_VAL the player tries to preload preloadingDurationMs e.g. five seconds of media for the next item in the playlist. Note that if you decide not to provide the PlaylistPreloadConfiguration instance the playlist media preloading is disabled. For convenience, PlaylistPreloadConfiguration provides default values for the configuration properties.

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

Sets PlayerNotificationProperties to control how lock screen notifications should look like.

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

Sets the surface to render the video into.

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

Sets the view to render the video into.

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>

Set the seeking behaviour of the player.

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

Configures User-Agent string.