fix suspended Web Audio context / fixed delayed getUsermedia if user has to interact -> broken audio/video on one side

This commit is contained in:
Stefan Otto
2019-03-13 14:06:46 +01:00
parent bdfe2c32cc
commit f03a84ef28
6 changed files with 139 additions and 22 deletions
+8
View File
@@ -4,6 +4,7 @@ const initialState =
state : 'new', // new/connecting/connected/disconnected/closed,
locked : false,
lockedOut : false,
audioSuspended : false,
activeSpeakerName : null,
torrentSupport : false,
showSettings : false,
@@ -52,6 +53,13 @@ const room = (state = initialState, action) =>
return { ...state, lockedOut: true };
}
case 'SET_AUDIO_SUSPENDED':
{
const { audioSuspended } = action.payload;
return { ...state, audioSuspended };
}
case 'SET_ROOM_ACTIVE_SPEAKER':
{
const { peerName } = action.payload;