android-components / mozilla.components.browser.engine.gecko.permission / GeckoPermissionRequest / Media

# Media

`data class Media : GeckoPermissionRequest` (source)

Represents a gecko-based media permission request.

### Constructors

<init> | `Media(uri: String, videoSources: List<MediaSource>, audioSources: List<MediaSource>, callback: MediaCallback)` Represents a gecko-based media permission request.

### Properties

uri | `val uri: String` the URI of the content requesting the permissions.

### Inherited Properties

permissions | `open val permissions: List<Permission>` the list of requested permissions.

### Functions

grant | `fun grant(permissions: List<Permission>): Unit` Grants the provided permissions, or all requested permissions, if none are provided.
reject | `fun reject(): Unit` Rejects the requested permissions.

### Companion Object Functions

mapPermission | `fun mapPermission(mediaSource: MediaSource): Permission`