diff options
-rw-r--r-- | app.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -24,9 +24,7 @@ function stopOtherPlayersExcept(player) { | |||
24 | } | 24 | } |
25 | 25 | ||
26 | function makeExclusive(player) { | 26 | function makeExclusive(player) { |
27 | player.addEventListener("play", _event => { | 27 | player.addEventListener("play", _event => stopOtherPlayersExcept(player)); |
28 | stopOtherPlayersExcept(player); | ||
29 | }); | ||
30 | return player; | 28 | return player; |
31 | } | 29 | } |
32 | 30 | ||
@@ -99,7 +97,7 @@ function onGetDeviceSuccess(stream) { | |||
99 | 97 | ||
100 | function onGetDeviceError(error) { | 98 | function onGetDeviceError(error) { |
101 | console.log(error); | 99 | console.log(error); |
102 | errorContainer.innerHTML = error; | 100 | errorContainer.textContent = error; |
103 | } | 101 | } |
104 | 102 | ||
105 | navigator | 103 | navigator |