Skip to content

Commit

Permalink
[mirotalk] - add poster
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Dec 29, 2024
1 parent d1fd92b commit 2b33718
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - [email protected]
* @version 1.4.20
* @version 1.4.21
*
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.4.20",
"version": "1.4.21",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions public/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - [email protected]
* @version 1.4.20
* @version 1.4.21
*
*/

Expand Down Expand Up @@ -49,6 +49,7 @@ const images = {
forbidden: '../images/forbidden.png',
avatar: '../images/mirotalk-logo.png',
recording: '../images/recording.png',
poster: '../images/loader.gif',
}; // nice free icon: https://www.iconfinder.com

const className = {
Expand Down Expand Up @@ -3135,6 +3136,7 @@ async function loadLocalMedia(stream, kind) {
myLocalMedia.muted = true;
myLocalMedia.volume = 0;
myLocalMedia.controls = false;
myLocalMedia.poster = images.poster;

myVideoWrap.className = 'Camera';
myVideoWrap.setAttribute('id', 'myVideoWrap');
Expand Down Expand Up @@ -3457,6 +3459,7 @@ async function loadRemoteMediaStream(stream, peers, peer_id, kind) {
remoteMedia.style.objectFit = peer_screen_status ? 'contain' : 'var(--video-object-fit)';
remoteMedia.style.name = peer_id + (peer_screen_status ? '_typeScreen' : '_typeCam');
remoteMedia.controls = remoteMediaControls;
remoteMedia.poster = images.poster;

remoteVideoWrap.className = 'Camera';
remoteVideoWrap.setAttribute('id', peer_id + '_videoWrap');
Expand Down Expand Up @@ -10695,7 +10698,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: '<strong>WebRTC P2P v1.4.20</strong>',
title: '<strong>WebRTC P2P v1.4.21</strong>',
imageAlt: 'mirotalk-about',
imageUrl: images.about,
customClass: { image: 'img-about' },
Expand Down

0 comments on commit 2b33718

Please sign in to comment.