-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug codecs #51
Debug codecs #51
Conversation
🚧But the svc is still progressing
But the svc is still 🚧 .
.enumerateDevices() | ||
.then((devices) => { | ||
const videoDevices = devices.filter( | ||
(device) => device.kind === "videoinput" && device.label !== "OBS Virtual Camera", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why if device.label !== "OBS Virtual Camera"
?
We're should only use device.kind
document.getElementById("video_device").appendChild(opt); | ||
} | ||
|
||
if (document.getElementById("video_device").children.length !== 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// set current device
const xxx = document.getElementById("video_device")
xxx.value = xxx.children[1].value
} | ||
|
||
async publish(pc, url, token) { | ||
// edit answer_sdp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think: there need a hook function, set a function to change sdp
No description provided.