| 1 | package media |
| 2 | |
| 3 | // Code generated by cdproto-gen. DO NOT EDIT. |
| 4 | |
| 5 | // EventPlayerPropertiesChanged this can be called multiple times, and can be |
| 6 | // used to set / override / remove player properties. A null propValue indicates |
| 7 | // removal. |
| 8 | // |
| 9 | // See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerPropertiesChanged |
| 10 | type EventPlayerPropertiesChanged struct { |
| 11 | PlayerID PlayerID `json:"playerId"` |
| 12 | Properties []*PlayerProperty `json:"properties"` |
| 13 | } |
| 14 | |
| 15 | // EventPlayerEventsAdded send events as a list, allowing them to be batched |
| 16 | // on the browser for less congestion. If batched, events must ALWAYS be in |
| 17 | // chronological order. |
| 18 | // |
| 19 | // See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerEventsAdded |
| 20 | type EventPlayerEventsAdded struct { |
| 21 | PlayerID PlayerID `json:"playerId"` |
| 22 | Events []*PlayerEvent `json:"events"` |
| 23 | } |
| 24 | |
| 25 | // EventPlayerMessagesLogged send a list of any messages that need to be |
| 26 | // delivered. |
| 27 | // |
| 28 | // See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerMessagesLogged |
| 29 | type EventPlayerMessagesLogged struct { |
| 30 | PlayerID PlayerID `json:"playerId"` |
| 31 | Messages []*PlayerMessage `json:"messages"` |
| 32 | } |
| 33 | |
| 34 | // EventPlayerErrorsRaised send a list of any errors that need to be |
| 35 | // delivered. |
| 36 | // |
| 37 | // See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playerErrorsRaised |
| 38 | type EventPlayerErrorsRaised struct { |
| 39 | PlayerID PlayerID `json:"playerId"` |
| 40 | Errors []*PlayerError `json:"errors"` |
| 41 | } |
| 42 | |
| 43 | // EventPlayersCreated called whenever a player is created, or when a new |
| 44 | // agent joins and receives a list of active players. If an agent is restored, |
| 45 | // it will receive the full list of player ids and all events again. |
| 46 | // |
| 47 | // See: https://chromedevtools.github.io/devtools-protocol/tot/Media#event-playersCreated |
| 48 | type EventPlayersCreated struct { |
| 49 | Players []PlayerID `json:"players"` |
| 50 | } |