[android-components](../index.md) / [mozilla.components.feature.media.ext](index.md) / [getActiveMediaTab](./get-active-media-tab.md)

# getActiveMediaTab

`fun `[`BrowserState`](../mozilla.components.browser.state.state/-browser-state/index.md)`.getActiveMediaTab(): `[`SessionState`](../mozilla.components.browser.state.state/-session-state/index.md)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/media/src/main/java/mozilla/components/feature/media/ext/MediaState.kt#L80)

Get the [SessionState](../mozilla.components.browser.state.state/-session-state/index.md) that caused this [MediaState](../mozilla.components.browser.state.state/-media-state/index.md) (if any).

