puppeteer/new-docs/puppeteer.protocol.media.md
Johan Bay e89e264a16
feat(chromium): roll Chromium to r782078 (#6250)
This corresponds to Chromium 85.0.4182.0.

This roll includes: 
- Enable SameSiteByDefaultCookies and CookiesWithoutSameSiteMustBeSecure
   https://crrev.com/c/2231445
- [FlexNG] Enable FlexNG by default
   https://crrev.com/c/2216595

Closes #6151.
2020-07-20 17:17:06 +02:00

43 lines
2.3 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Media](./puppeteer.protocol.media.md)
## Protocol.Media namespace
This domain allows detailed inspection of media elements
<b>Signature:</b>
```typescript
export namespace Media
```
## Enumerations
| Enumeration | Description |
| --- | --- |
| [PlayerErrorType](./puppeteer.protocol.media.playererrortype.md) | |
| [PlayerMessageLevel](./puppeteer.protocol.media.playermessagelevel.md) | |
## Interfaces
| Interface | Description |
| --- | --- |
| [PlayerError](./puppeteer.protocol.media.playererror.md) | Corresponds to kMediaError |
| [PlayerErrorsRaisedEvent](./puppeteer.protocol.media.playererrorsraisedevent.md) | Send a list of any errors that need to be delivered. |
| [PlayerEvent](./puppeteer.protocol.media.playerevent.md) | Corresponds to kMediaEventTriggered |
| [PlayerEventsAddedEvent](./puppeteer.protocol.media.playereventsaddedevent.md) | 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. |
| [PlayerMessage](./puppeteer.protocol.media.playermessage.md) | Have one type per entry in MediaLogRecord::Type Corresponds to kMessage |
| [PlayerMessagesLoggedEvent](./puppeteer.protocol.media.playermessagesloggedevent.md) | Send a list of any messages that need to be delivered. |
| [PlayerPropertiesChangedEvent](./puppeteer.protocol.media.playerpropertieschangedevent.md) | This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal. |
| [PlayerProperty](./puppeteer.protocol.media.playerproperty.md) | Corresponds to kMediaPropertyChange |
| [PlayersCreatedEvent](./puppeteer.protocol.media.playerscreatedevent.md) | Called whenever a player is created, or when a new agent joins and recieves a list of active players. If an agent is restored, it will recieve the full list of player ids and all events again. |
## Type Aliases
| Type Alias | Description |
| --- | --- |
| [PlayerId](./puppeteer.protocol.media.playerid.md) | Players will get an ID that is unique within the agent context. |
| [Timestamp](./puppeteer.protocol.media.timestamp.md) | |