Remove trailing slash for copied rtmp url

This commit is contained in:
Gabe Kangas 2022-02-17 21:29:10 -08:00
parent 1ff44e436a
commit 6e471a1124

View File

@ -20,7 +20,7 @@ const { Title } = Typography;
const { Meta } = Card;
function generateStreamURL(serverURL, rtmpServerPort) {
return `rtmp://${serverURL.replace(/(^\w+:|^)\/\//, '')}:${rtmpServerPort}/live/`;
return `rtmp://${serverURL.replace(/(^\w+:|^)\/\//, '')}:${rtmpServerPort}/live`;
}
type OfflineProps = {