Package-level declarations

Types

Link copied to clipboard

A renderer that can follow the SurfaceView owned by KitePlayerView.

Link copied to clipboard

Creates the Android renderer adapter used by KitePlayerView.

Link copied to clipboard

Creates the renderer hosted by KitePlayerUIView.

Link copied to clipboard
Link copied to clipboard

Creates the desktop renderer adapter used by KitePlayerAwtView.

Link copied to clipboard

The screen corner a floating picture window opens in.

Link copied to clipboard
data class FloatingWindowLabels(val play: String = "Play", val pause: String = "Pause", val backToApp: String = "Back to app", val close: String = "Close")

The words of the floating window's right-click menu. English by default; pass translated ones.

Link copied to clipboard
data class FloatingWindowOptions(val widthFraction: Float = 0.25f, val corner: FloatingCorner = FloatingCorner.BottomRight, val margin: Int = 24, val labels: FloatingWindowLabels = FloatingWindowLabels())

Where and how large the floating picture window of KitePlayerPictureInPicture opens.

Link copied to clipboard

A desktop player view: an ordinary AWT canvas that a renderer paints video into.

Link copied to clipboard

Puts a KitePlayer in the small floating window, and lets that window drive it, on iOS and macOS.

Shows the picture of a KitePlayerAwtView in a small window that stays above every other window.

Puts the canvas a web player draws into in a small window above the viewer's other windows.

Link copied to clipboard
class KitePlayerUIView : UIView

The reusable iOS player view: a black UIView whose video layer's whole lifecycle is handled here.

Link copied to clipboard
open class KitePlayerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout

A reusable Android player view for layouts, programmatic UI, and Compose AndroidView interop.

Link copied to clipboard

What a KitePlayerView uses when it has no KitePlayerView.rendererFactory of its own.

What a KitePlayerUIView uses when it has no KitePlayerUIView.rendererFactory of its own.

What a KitePlayerAwtView uses when it has no KitePlayerAwtView.rendererFactory of its own.

Link copied to clipboard

Renderer contract used by a platform player view.

Link copied to clipboard

The browser feature a web KitePlayerPictureInPicture opens its window with.

Properties

Link copied to clipboard

What a screen reader calls the video surface when nothing more specific is set.

Functions

Link copied to clipboard
fun accessibilityStateText(status: PlaybackStatus, position: Duration, duration: Duration?): String

What a screen reader should say about the player's state, as one sentence.

Link copied to clipboard

Enters picture in picture with this view's own parameters.

Link copied to clipboard
fun KitePlayerView.keepPictureInPictureParamsCurrent(activity: Activity, autoEnterWhilePlaying: Boolean = true): AutoCloseable

Keeps activity's picture-in-picture parameters matching what this view is showing.