Moved to audio only, handled stream closure and added mute button to name

This commit is contained in:
Mitchell McCaffrey
2020-04-08 19:56:14 +10:00
parent 81c3e69932
commit 2f18222e99
6 changed files with 139 additions and 43 deletions
+5
View File
@@ -18,3 +18,8 @@ export function fromEntries(iterable) {
return obj;
}, {});
}
// Check to see if all tracks are muted
export function isStreamStopped(stream) {
return stream.getTracks().reduce((a, b) => a && b, { mute: true });
}