Skip to content

Commit

Permalink
[mirotalksfu] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 30, 2024
1 parent 232c635 commit 93a8773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: `
<br />
<div id="about">
Expand Down
10 changes: 5 additions & 5 deletions rtmpServers/node-media-server/src/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 93a8773

Please sign in to comment.