Remove trailing slash for copied rtmp url
This commit is contained in:
parent
1ff44e436a
commit
6e471a1124
@ -20,7 +20,7 @@ const { Title } = Typography;
|
|||||||
const { Meta } = Card;
|
const { Meta } = Card;
|
||||||
|
|
||||||
function generateStreamURL(serverURL, rtmpServerPort) {
|
function generateStreamURL(serverURL, rtmpServerPort) {
|
||||||
return `rtmp://${serverURL.replace(/(^\w+:|^)\/\//, '')}:${rtmpServerPort}/live/`;
|
return `rtmp://${serverURL.replace(/(^\w+:|^)\/\//, '')}:${rtmpServerPort}/live`;
|
||||||
}
|
}
|
||||||
|
|
||||||
type OfflineProps = {
|
type OfflineProps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user