Add ability to set stream audio playing in background

This commit is contained in:
Max Goodhart
2020-08-26 23:28:04 -07:00
parent 93a29ecfac
commit d8e51776e9
6 changed files with 59 additions and 9 deletions

View File

@@ -29,6 +29,9 @@ function Overlay({ config, views, streams }) {
const isListening = viewState.matches(
'displaying.running.audio.listening',
)
const isBackgroundListening = viewState.matches(
'displaying.running.audio.background',
)
const isBlurred = viewState.matches('displaying.running.video.blurred')
const isLoading = viewState.matches('displaying.loading')
return (
@@ -51,7 +54,7 @@ function Overlay({ config, views, streams }) {
</>
)}
</span>
{isListening && <SoundIcon />}
{(isListening || isBackgroundListening) && <SoundIcon />}
</StreamTitle>
)}
{isLoading && <LoadingSpinner />}