CDPotion.Domain.Media (cdpotion v0.1.4)

Summary

Types

Corresponds to kMediaError

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

Corresponds to kMediaEventTriggered

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

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

Corresponds to kMediaPropertyChange

description not provided :(

Functions

Disables the Media domain.

Enables the Media domain

Types

Link to this type

player_error()

@type player_error() :: %{
  cause: [player_error()],
  code: integer(),
  data: map(),
  errorType: String.t(),
  stack: [player_error_source_location()]
}

Corresponds to kMediaError

Link to this type

player_error_source_location()

@type player_error_source_location() :: %{file: String.t(), line: integer()}

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

Link to this type

player_event()

@type player_event() :: %{timestamp: timestamp(), value: String.t()}

Corresponds to kMediaEventTriggered

@type player_id() :: String.t()

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

Link to this type

player_message()

@type player_message() :: %{
  level: :error | :warning | :info | :debug,
  message: String.t()
}

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

Link to this type

player_property()

@type player_property() :: %{name: String.t(), value: String.t()}

Corresponds to kMediaPropertyChange

@type timestamp() :: number()

description not provided :(

Functions

@spec disable() :: {String.t(), map()}

Disables the Media domain.

@spec enable() :: {String.t(), map()}

Enables the Media domain