package media
Import Path
github.com/chromedp/cdproto/media (on go.dev)
Dependency Relation
imports 7 packages, and imported by one package
Involved Source Files
easyjson.go
events.go
Package media provides the Chrome DevTools Protocol
commands, types, and events for the Media domain.
This domain allows detailed inspection of media elements.
Generated by the cdproto-gen command.
types.go
Package-Level Type Names (total 15)
DisableParams disables the Media domain.
Do executes Media.disable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*DisableParams : github.com/chromedp/chromedp.Action
*DisableParams : github.com/chromedp/chromedp.CallAction
*DisableParams : github.com/chromedp/chromedp.EmulateAction
*DisableParams : github.com/chromedp/chromedp.EvaluateAction
*DisableParams : github.com/chromedp/chromedp.KeyAction
*DisableParams : github.com/chromedp/chromedp.MouseAction
*DisableParams : github.com/chromedp/chromedp.NavigateAction
*DisableParams : github.com/chromedp/chromedp.PollAction
*DisableParams : github.com/chromedp/chromedp.QueryAction
DisableParams : github.com/goccy/go-json.Marshaler
*DisableParams : github.com/goccy/go-json.Unmarshaler
DisableParams : github.com/mailru/easyjson.Marshaler
*DisableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*DisableParams : github.com/mailru/easyjson.Unmarshaler
DisableParams : encoding/json.Marshaler
*DisableParams : encoding/json.Unmarshaler
func Disable() *DisableParams
EnableParams enables the Media domain.
Do executes Media.enable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*EnableParams : github.com/chromedp/chromedp.Action
*EnableParams : github.com/chromedp/chromedp.CallAction
*EnableParams : github.com/chromedp/chromedp.EmulateAction
*EnableParams : github.com/chromedp/chromedp.EvaluateAction
*EnableParams : github.com/chromedp/chromedp.KeyAction
*EnableParams : github.com/chromedp/chromedp.MouseAction
*EnableParams : github.com/chromedp/chromedp.NavigateAction
*EnableParams : github.com/chromedp/chromedp.PollAction
*EnableParams : github.com/chromedp/chromedp.QueryAction
EnableParams : github.com/goccy/go-json.Marshaler
*EnableParams : github.com/goccy/go-json.Unmarshaler
EnableParams : github.com/mailru/easyjson.Marshaler
*EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*EnableParams : github.com/mailru/easyjson.Unmarshaler
EnableParams : encoding/json.Marshaler
*EnableParams : encoding/json.Unmarshaler
func Enable() *EnableParams
EventPlayerErrorsRaised send a list of any errors that need to be
delivered.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerErrorsRaised
Errors []*PlayerError
PlayerID PlayerID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventPlayerErrorsRaised : github.com/goccy/go-json.Marshaler
*EventPlayerErrorsRaised : github.com/goccy/go-json.Unmarshaler
EventPlayerErrorsRaised : github.com/mailru/easyjson.Marshaler
*EventPlayerErrorsRaised : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventPlayerErrorsRaised : github.com/mailru/easyjson.Unmarshaler
EventPlayerErrorsRaised : encoding/json.Marshaler
*EventPlayerErrorsRaised : encoding/json.Unmarshaler
EventPlayerEventsAdded send events as a list, allowing them to be batched
on the browser for less congestion. If batched, events must ALWAYS be in
chronological order.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerEventsAdded
Events []*PlayerEvent
PlayerID PlayerID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventPlayerEventsAdded : github.com/goccy/go-json.Marshaler
*EventPlayerEventsAdded : github.com/goccy/go-json.Unmarshaler
EventPlayerEventsAdded : github.com/mailru/easyjson.Marshaler
*EventPlayerEventsAdded : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventPlayerEventsAdded : github.com/mailru/easyjson.Unmarshaler
EventPlayerEventsAdded : encoding/json.Marshaler
*EventPlayerEventsAdded : encoding/json.Unmarshaler
EventPlayerMessagesLogged send a list of any messages that need to be
delivered.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerMessagesLogged
Messages []*PlayerMessage
PlayerID PlayerID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventPlayerMessagesLogged : github.com/goccy/go-json.Marshaler
*EventPlayerMessagesLogged : github.com/goccy/go-json.Unmarshaler
EventPlayerMessagesLogged : github.com/mailru/easyjson.Marshaler
*EventPlayerMessagesLogged : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventPlayerMessagesLogged : github.com/mailru/easyjson.Unmarshaler
EventPlayerMessagesLogged : encoding/json.Marshaler
*EventPlayerMessagesLogged : encoding/json.Unmarshaler
EventPlayerPropertiesChanged this can be called multiple times, and can be
used to set / override / remove player properties. A null propValue indicates
removal.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerPropertiesChanged
PlayerID PlayerID
Properties []*PlayerProperty
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventPlayerPropertiesChanged : github.com/goccy/go-json.Marshaler
*EventPlayerPropertiesChanged : github.com/goccy/go-json.Unmarshaler
EventPlayerPropertiesChanged : github.com/mailru/easyjson.Marshaler
*EventPlayerPropertiesChanged : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventPlayerPropertiesChanged : github.com/mailru/easyjson.Unmarshaler
EventPlayerPropertiesChanged : encoding/json.Marshaler
*EventPlayerPropertiesChanged : encoding/json.Unmarshaler
EventPlayersCreated called whenever a player is created, or when a new
agent joins and receives a list of active players. If an agent is restored,
it will receive the full list of player ids and all events again.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playersCreated
Players []PlayerID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventPlayersCreated : github.com/goccy/go-json.Marshaler
*EventPlayersCreated : github.com/goccy/go-json.Unmarshaler
EventPlayersCreated : github.com/mailru/easyjson.Marshaler
*EventPlayersCreated : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventPlayersCreated : github.com/mailru/easyjson.Unmarshaler
EventPlayersCreated : encoding/json.Marshaler
*EventPlayersCreated : encoding/json.Unmarshaler
PlayerError corresponds to kMediaError.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerError
// Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
// Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h
Data easyjson.RawMessage
ErrorType string
// A trace of where this error was caused / where it passed through.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PlayerError : github.com/goccy/go-json.Marshaler
*PlayerError : github.com/goccy/go-json.Unmarshaler
PlayerError : github.com/mailru/easyjson.Marshaler
*PlayerError : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlayerError : github.com/mailru/easyjson.Unmarshaler
PlayerError : encoding/json.Marshaler
*PlayerError : encoding/json.Unmarshaler
PlayerErrorSourceLocation represents logged source line numbers reported
in an error. NOTE: file and line are from chromium c++ implementation code,
not js.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerErrorSourceLocation
File string
Line int64
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PlayerErrorSourceLocation : github.com/goccy/go-json.Marshaler
*PlayerErrorSourceLocation : github.com/goccy/go-json.Unmarshaler
PlayerErrorSourceLocation : github.com/mailru/easyjson.Marshaler
*PlayerErrorSourceLocation : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlayerErrorSourceLocation : github.com/mailru/easyjson.Unmarshaler
PlayerErrorSourceLocation : encoding/json.Marshaler
*PlayerErrorSourceLocation : encoding/json.Unmarshaler
PlayerEvent corresponds to kMediaEventTriggered.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerEvent
Timestamp Timestamp
Value string
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PlayerEvent : github.com/goccy/go-json.Marshaler
*PlayerEvent : github.com/goccy/go-json.Unmarshaler
PlayerEvent : github.com/mailru/easyjson.Marshaler
*PlayerEvent : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlayerEvent : github.com/mailru/easyjson.Unmarshaler
PlayerEvent : encoding/json.Marshaler
*PlayerEvent : encoding/json.Unmarshaler
PlayerID players will get an ID that is unique within the agent context.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerId
String returns the PlayerID as string value.
PlayerID : expvar.Var
PlayerID : fmt.Stringer
PlayerMessage have one type per entry in MediaLogRecord::Type Corresponds
to kMessage.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerMessage
// Keep in sync with MediaLogMessageLevel We are currently keeping the message level 'error' separate from the PlayerError type because right now they represent different things, this one being a DVLOG(ERROR) style log message that gets printed based on what log level is selected in the UI, and the other is a representation of a media::PipelineStatus object. Soon however we're going to be moving away from using PipelineStatus for errors and introducing a new error type which should hopefully let us integrate the error log level into the PlayerError type.
Message string
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PlayerMessage : github.com/goccy/go-json.Marshaler
*PlayerMessage : github.com/goccy/go-json.Unmarshaler
PlayerMessage : github.com/mailru/easyjson.Marshaler
*PlayerMessage : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlayerMessage : github.com/mailru/easyjson.Unmarshaler
PlayerMessage : encoding/json.Marshaler
*PlayerMessage : encoding/json.Unmarshaler
PlayerMessageLevel keep in sync with MediaLogMessageLevel We are currently
keeping the message level 'error' separate from the PlayerError type because
right now they represent different things, this one being a DVLOG(ERROR)
style log message that gets printed based on what log level is selected in
the UI, and the other is a representation of a media::PipelineStatus object.
Soon however we're going to be moving away from using PipelineStatus for
errors and introducing a new error type which should hopefully let us
integrate the error log level into the PlayerError type.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerMessage
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the PlayerMessageLevel as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
PlayerMessageLevel : github.com/goccy/go-json.Marshaler
*PlayerMessageLevel : github.com/goccy/go-json.Unmarshaler
PlayerMessageLevel : github.com/mailru/easyjson.Marshaler
*PlayerMessageLevel : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlayerMessageLevel : github.com/mailru/easyjson.Unmarshaler
PlayerMessageLevel : encoding/json.Marshaler
*PlayerMessageLevel : encoding/json.Unmarshaler
PlayerMessageLevel : expvar.Var
PlayerMessageLevel : fmt.Stringer
const PlayerMessageLevelDebug
const PlayerMessageLevelError
const PlayerMessageLevelInfo
const PlayerMessageLevelWarning
PlayerProperty corresponds to kMediaPropertyChange.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-PlayerProperty
// address field name, for example GIVEN_NAME.
// address field value, for example Jon Doe.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PlayerProperty : github.com/goccy/go-json.Marshaler
*PlayerProperty : github.com/goccy/go-json.Unmarshaler
PlayerProperty : github.com/mailru/easyjson.Marshaler
*PlayerProperty : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlayerProperty : github.com/mailru/easyjson.Unmarshaler
PlayerProperty : encoding/json.Marshaler
*PlayerProperty : encoding/json.Unmarshaler
Timestamp [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#type-Timestamp
Float64 returns the Timestamp as float64 value.
Package-Level Functions (total 2)
Disable disables the Media domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#method-disable
Enable enables the Media domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/Media#method-enable
Package-Level Constants (total 6)
Command names.
Command names.
PlayerMessageLevel values.
PlayerMessageLevel values.
PlayerMessageLevel values.
PlayerMessageLevel values.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |