createOrNull

fun createOrNull(config: PlayerConfig = PlayerConfig()): KitePlayer?

Deprecated

Use KitePlayer(config). It throws PlaybackException where this returns null, and it keeps a backend that config.backends names. Check KitePlayer.isAvailable first where the platform may have no default stack.

Replace with

import io.github.yuroyami.kiteplayer.KitePlayer
KitePlayer(config)

Creates the default player, or returns null when availability is unavailable.

PlayerConfig.backends is replaced with the platform defaults. Call KitePlayer.create directly when supplying custom backends.