Skip to content

Commit

Permalink
[mirotalksfu] - fix typo, audio, update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Nov 6, 2024
1 parent 23620fc commit 0d529f4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.6.22
* @version 1.6.23
*
*/

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
"version": "1.6.22",
"version": "1.6.23",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {
Expand Down Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"@mattermost/client": "^10.0.0",
"@sentry/node": "^8.36.0",
"@sentry/node": "^8.37.1",
"axios": "^1.7.7",
"colors": "1.4.0",
"compression": "1.7.5",
Expand Down
5 changes: 3 additions & 2 deletions public/css/GroupChat.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
border: var(--border);
border-radius: 10px;
box-shadow: var(--box-shadow);
transition: background 1s;
transition: width 0.5s ease-in-out;
transition:
background 1s,
width 0.5s ease-in-out;
/* border: 1px solid lime; */
}

Expand Down
4 changes: 2 additions & 2 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.6.22
* @version 1.6.23
*
*/

Expand Down Expand Up @@ -4564,7 +4564,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.6.22',
title: 'WebRTC SFU v1.6.23',
html: `
<br />
<div id="about">
Expand Down
11 changes: 6 additions & 5 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2003,6 +2003,7 @@ class RoomClient {
case mediaType.audio:
elem = document.createElement('audio');
elem.setAttribute('id', id);
elem.setAttribute('name', id + '__localAudio');
elem.setAttribute('volume', this.peer_id + '___pVolume');
elem.controls = false;
elem.autoplay = true;
Expand Down Expand Up @@ -2137,7 +2138,7 @@ class RoomClient {
}

if (type === mediaType.audio) {
const au = this.getName(producer_id + '__localAudio');
const au = this.getName(producer_id + '__localAudio')[0];
au.srcObject.getTracks().forEach(function (track) {
track.stop();
});
Expand Down Expand Up @@ -2985,7 +2986,7 @@ class RoomClient {
setPeerAudio(peer_id, status) {
console.log('Set peer audio enabled: ' + status);
const audioStatus = this.getPeerAudioBtn(peer_id); // producer, consumers
const audioVolume = this.getPeerAudioVolumeBtn(peer_id); // consumers
const audioVolume = this.getPeerAudioVolumeBar(peer_id); // consumers
if (audioStatus) audioStatus.className = status ? html.audioOn : html.audioOff;
if (audioVolume) status ? show(audioVolume) : hide(audioVolume);
}
Expand All @@ -2995,7 +2996,7 @@ class RoomClient {
console.log('Set local audio enabled: ' + status);
this.peer_info.peer_audio = status;
const audioStatus = this.getPeerAudioBtn(peer_id); // producer, consumers
const audioVolume = this.getPeerAudioVolumeBtn(peer_id); // consumers
const audioVolume = this.getPeerAudioVolumeBar(peer_id); // consumers
if (audioStatus) audioStatus.className = status ? html.audioOn : html.audioOff;
if (audioVolume) status ? show(audioVolume) : hide(audioVolume);
}
Expand Down Expand Up @@ -3076,7 +3077,7 @@ class RoomClient {
return this.getId(peer_id + '__audio');
}

getPeerAudioVolumeBtn(peer_id) {
getPeerAudioVolumeBar(peer_id) {
return this.getId(peer_id + '___pVolume');
}

Expand Down Expand Up @@ -6973,7 +6974,7 @@ class RoomClient {
const inputElement = this.getId(volumeInputId);

if (inputElement && audioPlayer) {
inputElement.style.display = 'inline';
show(inputElement);
inputElement.value = 100;

let volumeUpdateTimeout;
Expand Down

0 comments on commit 0d529f4

Please sign in to comment.