adding test stuff to remove distortion
This commit is contained in:
@@ -222,17 +222,17 @@ function StreamRoom({
|
|||||||
// audio.autoplay = true;
|
// audio.autoplay = true;
|
||||||
// audio.srcObject = userStream;
|
// audio.srcObject = userStream;
|
||||||
|
|
||||||
// !TEST STUFF
|
// !TEST STUFF : removing distortion with headphones in
|
||||||
// test distortion to go away on disabling audio
|
// test distortion to go away on disabling audio
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// console.log("stopping audio stream ");
|
console.log("stopping audio stream ");
|
||||||
|
|
||||||
// userStream.getTracks().forEach((track) => {
|
userStream.getTracks().forEach((track) => {
|
||||||
// track.enabled = !track.enabled;
|
track.enabled = !track.enabled;
|
||||||
|
|
||||||
// track.stop();
|
track.stop();
|
||||||
// });
|
});
|
||||||
// }, 2000);
|
}, 0);
|
||||||
|
|
||||||
// take the initial list of tunedInUsers without my own id
|
// take the initial list of tunedInUsers without my own id
|
||||||
const everyOtherTunedUserId = tunedInUsers.filter(
|
const everyOtherTunedUserId = tunedInUsers.filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user