Mod switches to the improved SRT syntax

This commit is contained in:
Jan Stabenow 2022-11-08 01:18:54 +01:00
parent 8ed6605fc3
commit 5e09f41707
No known key found for this signature in database
GPG Key ID: 9C22DD65A9AAF133
5 changed files with 25 additions and 12 deletions

View File

@ -2,15 +2,20 @@
### v1.4.0 > v1.5.0
- Add skills props to encoder and decoder components
- Add `fps_mode` to x264, x265, vp9 encoder
- Add scale filter to non-hwaccel encoders
- Add `scale` filter to non-hwaccel encoders
- Add PeerTube and Media Network to publication services (plattforms, software)
- Add reset button to hide a player logo (datarhei/restreamer#431)
- Add reset button to hide a player logo ([#431](https://github.com/datarhei/restreamer/issues/431))
- Mod switches to the improved SRT syntax (thx to SA Consulting)
- Mod improves display of progress data
- Mod uses deprecated param ocl - now ochl (ff5)
- Mod simplifies the setup of Restreamer-to-Restreamer connections
- Mod adds Istafeed.me as StreamKey service to Instagram's publishing service
- Mod renames "Low delay" to "Low latency (buffer)" and set false as default (requires more feedback)
- Fix videojs-overlay logo size (datarhei/restreamer#431)
- Del removes support for clappr player
- Fix npm dependencies (security fixes)
- Fix videojs-overlay logo size ([#431](https://github.com/datarhei/restreamer/issues/431))
- Fix use of TLS for input from local RTMP server
- Fix Icecast publication service settings (datarhei/restreamer#429)
- Fix removes SRT bitstream on tee (OBS > RTMP > SRT is faulty)

View File

@ -115,11 +115,11 @@ export default function Changelog(props) {
<Dialog
open={props.open}
onClose={props.onClose}
title={<Trans>Changelog</Trans>}
title={<Trans>Update details (Changelog)</Trans>}
maxWidth={600}
buttonsRight={
<Button variant="outlined" color="primary" onClick={props.onClose}>
<Trans>Dismiss</Trans>
<Trans>Close</Trans>
</Button>
}
>

View File

@ -1020,8 +1020,8 @@ class Restreamer {
const port = getPort(cfg.host);
address =
`srt://${host}${port}/?mode=caller&transtype=live&streamid=#!:m=request,r=${channelid}` +
(cfg.token.length !== 0 ? `,token=${cfg.token}` : '') +
`srt://${host}${port}/?mode=caller&transtype=live&streamid=${channelid},mode:request` +
(cfg.token.length !== 0 ? `,token:${cfg.token}` : '') +
(cfg.passphrase.length !== 0 ? `&passphrase=${cfg.passphrase}` : '');
} else if (what === 'snapshot+memfs') {
// snapshot+memfs

View File

@ -346,11 +346,9 @@ const getSRTAddress = (host, name, token, passphrase, publish) => {
'srt' +
'://' +
host +
'?mode=caller&transtype=live&streamid=#!:m=' +
(publish ? 'publish' : 'request') +
',r=' +
name +
(token.length !== 0 ? ',token=' + encodeURIComponent(token) : '');
'?mode=caller&transtype=live&streamid=' +
name + ',mode:' + (publish ? 'publish' : 'request') +
(token.length !== 0 ? ',token:' + encodeURIComponent(token) : '');
if (passphrase.length !== 0) {
url += '&passphrase=' + encodeURIComponent(passphrase);

View File

@ -114,6 +114,14 @@ function Service(props) {
settings.v2_stream_id = url.hash.split('&')[0];
settings.v2_passphrase = '';
}
} else if (url.query) {
if (url.query.includes('passphrase=')) {
settings.v2_stream_id = url.query.split('streamid=')[1].split('&')[0];
settings.v2_passphrase = url.query.split('&passphrase=')[1].split('&')[0];
} else {
settings.v2_stream_id = url.query.split('streamid=')[1];
settings.v2_passphrase = '';
}
} else {
settings.v2_stream_id = '';
settings.v2_passphrase = '';
@ -123,6 +131,8 @@ function Service(props) {
if (url.query) {
if (url.query.includes('token=')) {
settings.v2_token = url.query.split('token=')[1].split('&')[0];
} else if (url.query.includes('token:')) {
settings.v2_token = url.query.split('token:')[1].split('&')[0];
} else {
settings.v2_token = '';
}