mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
add speaker device support (only works in canary for now)
This commit is contained in:
1 parent
ddfea1e4a0
commit
bf2654ead7
5 files changed
+118
-30
No files matched your search
@@ -354,6 +354,7 @@ var iceTimer;
|
||||
|
||||
self.options.useCamera = params.useCamera || "any";
|
||||
self.options.useMic = params.useMic || "any";
|
||||
self.options.useSpeak = params.useSpeak || "any";
|
||||
|
||||
function onSuccess(stream) {
|
||||
self.localStream = stream;
|
||||
@@ -486,6 +487,10 @@ var iceTimer;
|
||||
var useVideo = obj.options.useVideo;
|
||||
|
||||
if (useVideo && obj.options.useCamera && obj.options.useCamera !== "none") {
|
||||
if (!video.optional) {
|
||||
video.optional = [];
|
||||
}
|
||||
|
||||
if (obj.options.useCamera !== "any") {
|
||||
video.optional.push({sourceId: obj.options.useCamera});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user