android-components / mozilla.components.feature.media.ext / pauseIfPlaying

pauseIfPlaying

fun MediaState.pauseIfPlaying(): Unit (source)

If this state is MediaState.Playing then pause all playing Media.