Table of Contents

Class MediaAdapter

Namespace
OpenQA.Selenium.DevTools.V130.Media
Assembly
WebDriver.dll

Represents an adapter for the Media domain to simplify the command interface.

public class MediaAdapter
Inheritance
MediaAdapter
Inherited Members

Constructors

MediaAdapter(IDevToolsSession)

Initializes a new instance of the MediaAdapter class.

public MediaAdapter(IDevToolsSession session)

Parameters

session IDevToolsSession

The IDevToolsSession to be used with this adapter.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

Disable(DisableCommandSettings, CancellationToken, int?, bool)

disable

public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DisableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DisableCommandResponse>

Enable(EnableCommandSettings, CancellationToken, int?, bool)

enable

public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

Events

PlayerErrorsRaised

playerErrorsRaised

public event EventHandler<PlayerErrorsRaisedEventArgs> PlayerErrorsRaised

Event Type

EventHandler<PlayerErrorsRaisedEventArgs>

PlayerEventsAdded

playerEventsAdded

public event EventHandler<PlayerEventsAddedEventArgs> PlayerEventsAdded

Event Type

EventHandler<PlayerEventsAddedEventArgs>

PlayerMessagesLogged

playerMessagesLogged

public event EventHandler<PlayerMessagesLoggedEventArgs> PlayerMessagesLogged

Event Type

EventHandler<PlayerMessagesLoggedEventArgs>

PlayerPropertiesChanged

playerPropertiesChanged

public event EventHandler<PlayerPropertiesChangedEventArgs> PlayerPropertiesChanged

Event Type

EventHandler<PlayerPropertiesChangedEventArgs>

PlayersCreated

playersCreated

public event EventHandler<PlayersCreatedEventArgs> PlayersCreated

Event Type

EventHandler<PlayersCreatedEventArgs>