[android-components](../../../index.md) / [mozilla.components.browser.engine.gecko.permission](../../index.md) / [GeckoPermissionRequest](../index.md) / [Media](index.md) / [mapPermission](./map-permission.md)

# mapPermission

`fun mapPermission(mediaSource: `[`MediaSource`](https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoSession/PermissionDelegate/MediaSource.html)`): `[`Permission`](../../../mozilla.components.concept.engine.permission/-permission/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/engine-gecko-beta/src/main/java/mozilla/components/browser/engine/gecko/permission/GeckoPermissionRequest.kt#L122)