Open JamesPHoughton opened 1 year ago
Not sure if the daily prebuilt can take a value for the hardware setup.
Testing suggests daily PreBuilt failing to take Device ID for hardware setup on room connection. (I've previous asked the Daily team about this but got mixed responses. One suggested Device ID should work, though documentation says it will not)
I can think of two workarounds:
Couple questions:
Decided to go with your option 2 above
This should be working, we just need to check it using a cypress test. This may require mocking a webcam resource. If we can't do that, we'll do some "real people testing".
Could add some checkboxes to the QC survey: "I had problems with my: - webcam - speakers - microphone" etc.
Need to check that this also works for audio
Bringing alan's code into main
manually, as it's been so long.
Daily callFrame.join
method takes properties
but the relevant properties (videoSource
and audioSource
) arent supported in the daily prebuilt:
As a result, alan 'resets' the video and audio sources after join to be the same as the ones selected in the initial view:
callFrame.on("joined-meeting", (event) => {
...
// Temporary Fix: Manually set devices to saved config on join
setTimeout(() => {
console.log("attempt switching device setting")
callFrame.setInputDevicesAsync({
videoDeviceId: player.get("camera"),
audioDeviceId: player.get("mic"),
})}
, 5000);
When in the discussion a participant refreshes the page, the daily device selections from the previous page load are not persisted (for at least one person in a demo game).
Need to double check that persistence.
@Alan-Qiao - tagging you for situational awareness, I'll get more details to help with the debugging. This can happen after exams. ;)