Timeout
The player timed out in a non-network operation, e.g. when playback reports playing without making progress, when detaching the surface, or when releasing the player. Configure detection of playback without progress via PlaybackConfig.stuckDetectionConfig. 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
)
)Content copied to clipboard
The message of the according PlayerEvent.Error provides more information.
The numeric value associated with this code is1004.