Added some missing capabilities to SRT

Attempted to fix SRT push & embed links.
Push works, embed needs help

Changed capa to say UDP port as it is binding UDP

added methods to dtsc for output. added webrtc whip as input push url

added url_rel to DTSC

added "/" to the always_match and source_match for SDP and playlist to match with other protocols

updated Playlist to have source/always_match as array.
Noticed "variables_match" which is unused, what to do with it?

fix typo in -h controller text
This commit is contained in:
Balder 2023-10-19 14:00:50 +02:00 committed by Thulinma
parent d040421df9
commit ec757f48e9
8 changed files with 57 additions and 16 deletions

View file

@ -4353,7 +4353,7 @@ var UI = {
var port = {};
var trythese = ['RTMP','RTSP','RTMP.exe','RTSP.exe'];
var trythese = ['RTMP','RTSP','RTMP.exe','RTSP.exe','TSSRT','TSSRT.exe'];
for (var i in trythese) {
if (trythese[i] in mist.data.capabilities.connectors) {
port[trythese[i]] = mist.data.capabilities.connectors[trythese[i]].optional.port['default'];
@ -4364,6 +4364,8 @@ var UI = {
'RTMP.exe': 1935,
RTSP: 554,
'RTSP.exe': 554,
TSSRT: -1,
'TSSRT.exe': -1,
TS: -1,
'TS.exe': -1
};
@ -4395,6 +4397,10 @@ var UI = {
$livestreamhint.find('.field.RTMPkey').setval((streamname == '' ? 'STREAMNAME' : streamname)).closest('label').show();
str += (streamname == '' ? 'STREAMNAME' : streamname);
break;
case 'TSSRT':
case 'TSSRT.exe':
str = 'srt://'+host.host+useport+'?streamname='+(streamname == '' ? 'STREAMNAME' : streamname);
break;
case 'RTSP':
case 'RTSP.exe':
str = 'rtsp://'+host.host+useport+'/'+(streamname == '' ? 'STREAMNAME' : streamname)+(passw ? '?pass='+passw : '');
@ -4512,6 +4518,13 @@ var UI = {
PASSWORD is the application under which to push to MistServer, if it doesn\'t match the stream will be rejected. PASSWORD is MistServer Pro only.\
</td>\
</tr>\
<tr>\
<th>SRT</th>\
<td>push://(IP)</td>\
<td>\
IP is white listed IP for pushing towards MistServer, if left empty all are white listed.<br>\
</td>\
</tr>\
<tr>\
<th>RTSP</th>\
<td>push://(IP)(@PASSWORD)</td>\
@ -4625,6 +4638,13 @@ var UI = {
classes: ['RTMPkey'],
help: 'Use this key if your client asks for a stream key'
});
fields.push({
label: 'SRT',
type: 'span',
clipboard: true,
readonly: true,
classes: ['TSSRT']
});
fields.push({
label: 'RTSP',
type: 'span',