[android-components](../index.md) / [mozilla.components.feature.media.ext](index.md) / [getPlayingMediaIdsForTab](./get-playing-media-ids-for-tab.md)

# getPlayingMediaIdsForTab

`fun `[`MediaState`](../mozilla.components.browser.state.state/-media-state/index.md)`.getPlayingMediaIdsForTab(tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/media/src/main/java/mozilla/components/feature/media/ext/MediaState.kt#L24)

Returns a list of [MediaState.Element.id](../mozilla.components.browser.state.state/-media-state/-element/id.md) of playing media on the tab with the given [tabId](get-playing-media-ids-for-tab.md#mozilla.components.feature.media.ext$getPlayingMediaIdsForTab(mozilla.components.browser.state.state.MediaState, kotlin.String)/tabId).

