[mirotalk] - rename setupDevices to setupAudioVideoDevices

This commit is contained in:
Miroslav Pejic
2021-02-17 23:40:29 +01:00
parent 68e6d3f778
commit 09d23bcd43
+2 -5
View File
@@ -101,9 +101,6 @@ function initPeer() {
return;
}
// setup audio video deovices
setupDevices();
// peer ready for WebRTC! :)
console.log("Connecting to signaling server");
signalingSocket = io(signalingServer);
@@ -369,7 +366,7 @@ function initPeer() {
// =====================================================
// Setup audio - video devices
// =====================================================
function setupDevices() {
function setupAudioVideoDevices() {
// audio - video select box
audioInputSelect = get("audioSource");
audioOutputSelect = get("audioOutput");
@@ -482,7 +479,7 @@ function setupLocalMedia(callback, errorback) {
resizeVideos();
// here i have access to audio - video can do it :P
setupDevices();
setupAudioVideoDevices();
if (callback) callback();
})