Package-level declarations

Types

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the MediaDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the MediaDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

This domain allows detailed inspection of media elements

Link copied to clipboard
@Serializable
data class PlayerError(val errorType: String, val code: Int, val stack: List<PlayerErrorSourceLocation>, val cause: List<PlayerError>, val data: JsonObject)

Corresponds to kMediaError

Link copied to clipboard
@Serializable
data class PlayerErrorSourceLocation(val file: String, val line: Int)

Represents logged source line numbers reported in an error. NOTE: file and line are from chromium c++ implementation code, not js.

Link copied to clipboard
@Serializable
data class PlayerEvent(val timestamp: Timestamp, val value: String)

Corresponds to kMediaEventTriggered

Link copied to clipboard
typealias PlayerId = String

Players will get an ID that is unique within the agent context.

Official doc

Link copied to clipboard
@Serializable
data class PlayerMessage(val level: PlayerMessageLevel, val message: String)

Have one type per entry in MediaLogRecord::Type Corresponds to kMessage

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class PlayerProperty(val name: String, val value: String)

Corresponds to kMediaPropertyChange

Link copied to clipboard