[android-components](../index.md) / [mozilla.components.feature.media.ext](index.md) / [playIfPaused](./play-if-paused.md)

# playIfPaused

`fun `[`MediaState`](../mozilla.components.feature.media.state/-media-state/index.md)`.playIfPaused(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/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#L82)

If this state is [MediaState.Paused](../mozilla.components.feature.media.state/-media-state/-paused/index.md) then resume playing all paused [Media](../mozilla.components.concept.engine.media/-media/index.md).

