Header menu logo fable-electron-docs-api

MediaAccessPermissionRequest Type

Constructors

Constructor Description

MediaAccessPermissionRequest(requestingUrl, isMainFrame, ?securityOrigin, ?mediaTypes)

Full Usage: MediaAccessPermissionRequest(requestingUrl, isMainFrame, ?securityOrigin, ?mediaTypes)

Parameters:
    requestingUrl : string - The last URL the requesting frame loaded.
    isMainFrame : bool - Whether the frame making the request is the main frame.
    ?securityOrigin : string - The security origin of the request.
    ?mediaTypes : MediaTypes[] - The types of media access being requested - elements can be video or audio.

Returns: MediaAccessPermissionRequest
requestingUrl : string

The last URL the requesting frame loaded.

isMainFrame : bool

Whether the frame making the request is the main frame.

?securityOrigin : string

The security origin of the request.

?mediaTypes : MediaTypes[]

The types of media access being requested - elements can be video or audio.

Returns: MediaAccessPermissionRequest

Instance members

Instance member Description

this.isMainFrame

Full Usage: this.isMainFrame

Whether the frame making the request is the main frame.

this.mediaTypes

Full Usage: this.mediaTypes

The types of media access being requested - elements can be video or audio.

this.requestingUrl

Full Usage: this.requestingUrl

The last URL the requesting frame loaded.

this.securityOrigin

Full Usage: this.securityOrigin

The security origin of the request.

Type something to start searching.