Session player streaming improvements.
Ylian Saint-Hilaire committed
Nov 7, 2021 at 18:18 UTC
0c94f8e475f9d69686166f7d343378ce8556f0e2
2 files changed
+9
-3
views/default.handlebars
+1
-1
@@ -14989,7 +14989,7 @@
14989
if (rec.present == 1) {
14990
icon = 'm1';
14991
actions = '<div style=cursor:pointer;float:right><a onclick=downloadFile("recordings.ashx?file=' + encodeURIComponentEx(rec.filename) + '")><img src=images/link4.png height=10 width=10 title="Download Recording"></a> </div>';
14992
- actions += '<div style=cursor:pointer;float:right><a href="player.htm?stream=' + encodeURIComponentEx(rec.filename) + '")><img src=images/link7.png height=10 width=10 title="Play Recording"></a> </div>';
14992
+ actions += '<div style=cursor:pointer;float:right><a href="player.htm?stream=' + encodeURIComponentEx(rec.filename) + '") rel=\"noreferrer noopener\" target=\"mcplay-' + encodeURIComponentEx(rec.filename) + '\"><img src=images/link7.png height=10 width=10 title="Play Recording"></a> </div>';
14993
}
14994
var x = '<tr tabindex=0 onmouseover=userMouseHover2(this,1) onmouseout=userMouseHover2(this,0) onkeypress="if (event.key==\'Enter\') showRecordingDialog(event,\'' + i + '\')"><td style=cursor:pointer>';
14995
x += '<div class=bar style=width:100%>';
views/player.handlebars
+8
-2
@@ -30,7 +30,7 @@
30
</div>
31
<div>
32
<input id="OpenFileButton" type=button value="Open File..." onclick="openfile()" style="display:none">
33
- <span id="deskstatus"></span>
33
+ <div id="deskstatus" style="line-height:22px;overflow:hidden;max-height:22px"></div>
34
</div>
35
</div>
36
<div id=deskarea3x style="max-height:calc(100vh - 58px);height:calc(100vh - 58px);" onclick="togglePause()">
@@ -202,7 +202,13 @@
202
203
}
204
}
205
- ws.onclose = function (e) { console.log('Session Streaming - Disconnected'); restart(); }
205
+ ws.onclose = function (e) {
206
+ console.log('Session Streaming - Disconnected');
207
+ ws = null;
208
+ urlargs.stream = null;
209
+ QV('OpenFileButton', true);
210
+ cleanup();
211
+ }
212
} else {
213
QV('OpenFileButton', true);
214
}