From 93a87735bf5678e06036946f37866bd8083c8a94 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 30 Jun 2024 10:55:16 +0200 Subject: [PATCH] [mirotalksfu] - fix typo --- public/js/Room.js | 2 +- rtmpServers/node-media-server/src/sign.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/js/Room.js b/public/js/Room.js index 2a8c6f2c..3ab7244a 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -4032,7 +4032,7 @@ function showAbout() { imageUrl: image.about, customClass: { image: 'img-about' }, position: 'center', - title: 'WebRTC SFU v1.4.60', + title: 'WebRTC SFU 1.4.71', html: `
diff --git a/rtmpServers/node-media-server/src/sign.js b/rtmpServers/node-media-server/src/sign.js index 58a13e1b..7e4d0f99 100644 --- a/rtmpServers/node-media-server/src/sign.js +++ b/rtmpServers/node-media-server/src/sign.js @@ -27,7 +27,7 @@ function generateRTMPUrl(baseURL, streamPath, secretKey, expirationHours = 8) { const rtmpUrl = `${baseURL}${streamPath}?sign=${expirationTime}-${hashValue}`; // Print some log - log.debug('generateRTMPUrl', { + console.debug('generateRTMPUrl', { currentTime: currentTime, expirationTime: expirationTime, hashValue: hashValue, @@ -38,10 +38,10 @@ function generateRTMPUrl(baseURL, streamPath, secretKey, expirationHours = 8) { } // Example usage -const baseURL = 'rtmp://localhost:1935'; -const streamKey = uuidv4(); -const streamPath = '/live/' + streamKey; // path/stream-key -const secretKey = 'mirotalkRtmpSecret'; +const baseURL = 'rtmp://localhost:1935'; // Rtmp server +const streamKey = uuidv4(); // Generate random stream key +const streamPath = '/live/' + streamKey; // Path/stream-key +const secretKey = 'mirotalkRtmpSecret'; // Must be the same as in config.js auth.secret const expirationHours = 8; // Run: node sign.js