removed unnecessary logs

This commit is contained in:
kaitlynkittyy 2024-04-14 11:01:22 -04:00
parent a582eec640
commit f1f1c9a7fd

View file

@ -89,7 +89,6 @@ addPatch({
bitrateMax: 8000000, bitrateMax: 8000000,
bitrateTarget: 600000 bitrateTarget: 600000
}); });
console.log("opts: ", opts);
if (opts?.encode) { if (opts?.encode) {
Object.assign(opts.encode, { Object.assign(opts.encode, {
framerate, framerate,
@ -459,12 +458,9 @@ function ModalComponent({
} catch { } catch {
console.log("No current stream."); console.log("No current stream.");
} }
console.log([...MediaEngineStore.getMediaEngine().connections]);
try { try {
if (conn) { if (conn) {
console.log(conn);
const track = conn.input.stream.getVideoTracks()[0]; const track = conn.input.stream.getVideoTracks()[0];
console.log(track);
const frameRate = Number(settings.fps); const frameRate = Number(settings.fps);
const height = Number(settings.resolution); const height = Number(settings.resolution);
const width = Math.round(height * (16 / 9)); const width = Math.round(height * (16 / 9));
@ -498,9 +494,7 @@ function ModalComponent({
// i believe there MUST be way to do it cleaner.. // i believe there MUST be way to do it cleaner..
if (conn) { if (conn) {
setTimeout(() => { setTimeout(() => {
console.log(conn);
const track = conn.input.stream.getVideoTracks()[0]; const track = conn.input.stream.getVideoTracks()[0];
console.log(track);
const frameRate = Number(settings.fps); const frameRate = Number(settings.fps);
const height = Number(settings.resolution); const height = Number(settings.resolution);
const width = Math.round(height * (16 / 9)); const width = Math.round(height * (16 / 9));