Skip to content

Commit

Permalink
[mirotalksfu] - fix, add refresh video files
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jul 2, 2024
1 parent 7ea29cf commit ad5294b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
13 changes: 12 additions & 1 deletion public/css/Room.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ body {
}

#extraInfo {
margin-left: 5px;
max-height: 400px;
}

Expand Down Expand Up @@ -440,7 +441,7 @@ th {
}

#rtmpStreamURL,
#rtmp-url {
#rtmpLiveUrl {
margin-top: 5px;
padding: 10px;
width: 100%;
Expand All @@ -449,6 +450,16 @@ th {
background: var(--select-bg) !important;
}

#refreshVideoFiles {
float: right;
cursor: pointer;
border-radius: 5px;
background: var(--body-bg) !important;
}
#refreshVideoFiles:hover {
background: var(--select-bg) !important;
}

.input-container button {
flex: 1;
width: 20px;
Expand Down
6 changes: 5 additions & 1 deletion public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ function initClient() {
'Prioritize h.264 with AAC or h.264 with Opus codecs over VP8 with Opus or VP9 with Opus codecs',
'right',
);
setTippy('refreshVideoFiles', 'Refresh', 'left');
setTippy('switchServerRecording', 'The recording will be stored on the server rather than locally', 'right');
setTippy('whiteboardGhostButton', 'Toggle transparent background', 'bottom');
setTippy('wbBackgroundColorEl', 'Background color', 'bottom');
Expand Down Expand Up @@ -1490,6 +1491,9 @@ function handleButtons() {
rc.getRTMP();
rc.openTab(e, 'tabRTMPStreaming');
};
refreshVideoFiles.onclick = () => {
rc.getRTMP();
};
tabAspectBtn.onclick = (e) => {
rc.openTab(e, 'tabAspect');
};
Expand Down Expand Up @@ -1715,7 +1719,7 @@ function handleButtons() {
rc.closeProducer(RoomClient.mediaType.screen);
};
copyRtmpUrlButton.onclick = () => {
rc.copyRTMPUrl(rtmpStreamURL.value);
rc.copyRTMPUrl(rtmpLiveUrl.value);
};
startRtmpButton.onclick = () => {
if (rc.selectedRtmpFilename == '') {
Expand Down
4 changes: 2 additions & 2 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -7596,7 +7596,7 @@ class RoomClient {
}

cleanRTMPUrl() {
const rtmpUrl = rc.getId('rtmp-url');
const rtmpUrl = rc.getId('rtmpLiveUrl');
rtmpUrl.value = '';
}

Expand All @@ -7622,7 +7622,7 @@ class RoomClient {
);
}

const rtmpUrl = rc.getId('rtmp-url');
const rtmpUrl = rc.getId('rtmpLiveUrl');
rtmpUrl.value = filterXSS(rtmp);

Swal.fire({
Expand Down
7 changes: 5 additions & 2 deletions public/views/Room.html
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ <h1>Loading</h1>
</tr>
</table>
</div>
<hr />
<div id="roomRecordingServer" class="hidden">
<table class="settingsTable">
<tr>
Expand Down Expand Up @@ -948,7 +949,7 @@ <h1>Loading</h1>
<div id="rtmpUrlLive">
<div class="input-container">
<input
id="rtmp-url"
id="rtmpLiveUrl"
type="text"
value=""
placeholder="rtmp://server:port/app/streamKey"
Expand All @@ -960,7 +961,9 @@ <h1>Loading</h1>
<table class="file-table">
<thead>
<tr>
<th>Video Files:</th>
<th>
Video Files: <i id="refreshVideoFiles" class="fa-solid fa-rotate"></i>
</th>
</tr>
</thead>
<tbody id="file-list">
Expand Down

0 comments on commit ad5294b

Please sign in to comment.