[mirotalk] - add logs
This commit is contained in:
+12
-2
@@ -4255,14 +4255,24 @@ async function swapCamera() {
|
||||
* Stop Local Video Track
|
||||
*/
|
||||
async function stopLocalVideoTrack() {
|
||||
if (useVideo || !isScreenStreaming) localMediaStream.getVideoTracks()[0].stop();
|
||||
if (useVideo || !isScreenStreaming) {
|
||||
const localVideoTrack = localMediaStream.getVideoTracks()[0];
|
||||
if (localVideoTrack) {
|
||||
console.log('stopLocalVideoTrack', localVideoTrack);
|
||||
localVideoTrack.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop Local Audio Track
|
||||
*/
|
||||
async function stopLocalAudioTrack() {
|
||||
localMediaStream.getAudioTracks()[0].stop();
|
||||
const localAudioTrack = localMediaStream.getAudioTracks()[0];
|
||||
if (localAudioTrack) {
|
||||
console.log('stopLocalAudioTrack', localAudioTrack);
|
||||
localAudioTrack.stop();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,7 +97,7 @@ function resizeVideoMedia() {
|
||||
* @param {integer} bigWidth
|
||||
* @param {integer} margin
|
||||
* @param {integer} maxHeight
|
||||
* @param {integer} isOneVideoElement
|
||||
* @param {boolean} isOneVideoElement
|
||||
*/
|
||||
function setWidth(Cameras, width, bigWidth, margin, maxHeight, isOneVideoElement) {
|
||||
ratio = customRatio ? 0.68 : ratio;
|
||||
|
||||
Reference in New Issue
Block a user