[android-components](../../../index.md) / [mozilla.components.browser.state.action](../../index.md) / [MediaAction](../index.md) / [AddMediaAction](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`AddMediaAction(tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, media: `[`Element`](../../../mozilla.components.browser.state.state/-media-state/-element/index.md)`)`

Adds [media](media.md) to the list of [MediaState.Element](../../../mozilla.components.browser.state.state/-media-state/-element/index.md) for the tab with id [tabId](tab-id.md).

