SourceStalled

data class SourceStalled(val uri: String, val stalledFor: Duration) : PlaybackError

The source stopped answering: a read waited stalledFor without a packet or a byte, which is at least BufferPolicy.stallTimeout. The engine interrupted the read and ended the session. The same media may play when the network recovers.

Constructors

Link copied to clipboard
constructor(uri: String, stalledFor: Duration)

Properties

Link copied to clipboard
open val cause: Throwable? = null
Link copied to clipboard
open override val message: String
Link copied to clipboard
Link copied to clipboard
val uri: String

Functions

Link copied to clipboard
override fun toString(): String

The type and the message, with every URI cut to its file name. Final, so no subclass prints its fields: a data class would print a signed URL whole, and errors are what apps log.