SchemeUnsupported

data class SchemeUnsupported(val uri: String, val scheme: String, val detail: String? = null) : PlaybackError

The item's address has a scheme this build has no way to open, such as srt:// or rtmps://, or rtsp:// on the web, where the player has no sockets of its own. Nothing was sent over any network: the address was refused for its scheme alone.

The same address fails the same way every time in this build, which is what separates it from SourceUnavailable, where the bytes could not be reached this time. scheme is the address's scheme in lower case, without its colon, and detail may say what would open it. MediaItem's documentation lists the schemes each platform opens.

Constructors

Link copied to clipboard
constructor(uri: String, scheme: String, detail: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable? = null
Link copied to clipboard
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.