Mod switches to the improved SRT syntax
This commit is contained in:
parent
8ed6605fc3
commit
5e09f41707
11
CHANGELOG.md
11
CHANGELOG.md
@ -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)
|
||||
|
||||
@ -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>
|
||||
}
|
||||
>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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 = '';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user