createVideoPlayerState

actual fun createVideoPlayerState(audioMode: AudioMode, cacheConfig: CacheConfig): VideoPlayerState

Create platform-specific video player state. Supported platforms include Windows, macOS, and Linux.

Parameters

audioMode

The audio mode configuration for the player.

cacheConfig

Optional caching configuration. When CacheConfig.enabled is true, video data fetched via VideoPlayerState.openUri is cached on disk so that subsequent plays of the same URI avoid a full re-download. Currently only effective on Android and iOS.

expect fun createVideoPlayerState(audioMode: AudioMode = AudioMode(), cacheConfig: CacheConfig = CacheConfig()): VideoPlayerState

Create platform-specific video player state. Supported platforms include Windows, macOS, and Linux.

Parameters

audioMode

The audio mode configuration for the player.

cacheConfig

Optional caching configuration. When CacheConfig.enabled is true, video data fetched via VideoPlayerState.openUri is cached on disk so that subsequent plays of the same URI avoid a full re-download. Currently only effective on Android and iOS.

actual fun createVideoPlayerState(audioMode: AudioMode, cacheConfig: CacheConfig): VideoPlayerState

Create platform-specific video player state. Supported platforms include Windows, macOS, and Linux.

Parameters

audioMode

The audio mode configuration for the player.

cacheConfig

Optional caching configuration. When CacheConfig.enabled is true, video data fetched via VideoPlayerState.openUri is cached on disk so that subsequent plays of the same URI avoid a full re-download. Currently only effective on Android and iOS.

actual fun createVideoPlayerState(audioMode: AudioMode, cacheConfig: CacheConfig): VideoPlayerState

Create platform-specific video player state. Supported platforms include Windows, macOS, and Linux.

Parameters

audioMode

The audio mode configuration for the player.

cacheConfig

Optional caching configuration. When CacheConfig.enabled is true, video data fetched via VideoPlayerState.openUri is cached on disk so that subsequent plays of the same URI avoid a full re-download. Currently only effective on Android and iOS.

actual fun createVideoPlayerState(audioMode: AudioMode, cacheConfig: CacheConfig): VideoPlayerState

Create platform-specific video player state. Supported platforms include Windows, macOS, and Linux.

Parameters

audioMode

The audio mode configuration for the player.

cacheConfig

Optional caching configuration. When CacheConfig.enabled is true, video data fetched via VideoPlayerState.openUri is cached on disk so that subsequent plays of the same URI avoid a full re-download. Currently only effective on Android and iOS.