[android-components](../../index.md) / [mozilla.components.feature.media.notification](../index.md) / [MediaNotificationFeature](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`MediaNotificationFeature(context: <ERROR CLASS>, stateMachine: `[`MediaStateMachine`](../../mozilla.components.feature.media.state/-media-state-machine/index.md)`)`

Feature for displaying an ongoing notification (keeping the app process alive) while web content is playing media.

This feature should get initialized globally once on app start.

