Timeout

The player timed out in a non-network operation, e.g. when detaching the surface or releasing the player. Surface detachment timeouts can usually be ignored, as they do not affect playback. In order to avoid timeouts when releasing the player you can configure a longer timeout in the TweaksConfig.detachSurfaceTimeout and TweaksConfig.releasePlayerTimeout properties.

val playerConfig = PlayerConfig(
tweaksConfig = TweaksConfig(
detachSurfaceTimeout = 5.0, // 5 seconds
releasePlayerTimeout = 2.0, // 2 seconds
)
)

The message of the according PlayerEvent.Error provides more information.

The numeric value associated with this code is 1004.