mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-25 22:52:48 -05:00
Add ability to set stream audio playing in background
This commit is contained in:
@@ -141,6 +141,8 @@ const viewStateMachine = Machine(
|
||||
on: {
|
||||
MUTE: '.muted',
|
||||
UNMUTE: '.listening',
|
||||
BACKGROUND: '.background',
|
||||
UNBACKGROUND: '.muted',
|
||||
},
|
||||
states: {
|
||||
muted: {
|
||||
@@ -149,6 +151,13 @@ const viewStateMachine = Machine(
|
||||
listening: {
|
||||
entry: 'unmuteAudio',
|
||||
},
|
||||
background: {
|
||||
on: {
|
||||
// Ignore normal audio swapping.
|
||||
MUTE: {},
|
||||
},
|
||||
entry: 'unmuteAudio',
|
||||
},
|
||||
},
|
||||
},
|
||||
video: {
|
||||
|
||||
Reference in New Issue
Block a user