wow
Some checks failed
CI / check (push) Has been cancelled
CI / ida (push) Has been cancelled
CI / cpt (push) Has been cancelled
CI / build-nixos (ena) (push) Has been cancelled
CI / build-nixos (hako) (push) Has been cancelled
CI / build-nixos (kazusa) (push) Has been cancelled
CI / build-nixos (mizuki) (push) Has been cancelled
Some checks failed
CI / check (push) Has been cancelled
CI / ida (push) Has been cancelled
CI / cpt (push) Has been cancelled
CI / build-nixos (ena) (push) Has been cancelled
CI / build-nixos (hako) (push) Has been cancelled
CI / build-nixos (kazusa) (push) Has been cancelled
CI / build-nixos (mizuki) (push) Has been cancelled
This commit is contained in:
parent
e5b833064c
commit
d8e946b828
2 changed files with 6 additions and 2 deletions
|
|
@ -54,7 +54,7 @@
|
||||||
const source = `/hls/${encodeURIComponent(streamName)}.m3u8`;
|
const source = `/hls/${encodeURIComponent(streamName)}.m3u8`;
|
||||||
|
|
||||||
document.title = `${streamName} - stream.mizuki.guru`;
|
document.title = `${streamName} - stream.mizuki.guru`;
|
||||||
publish.innerHTML = `Publish: <code>rtmps://stream.mizuki.guru/live/${escapeHtml(streamName)}</code>`;
|
publish.innerHTML = `OBS Server: <code>rtmps://stream.mizuki.guru:1935/live</code><br />OBS Stream Key: <code>${escapeHtml(streamName)}</code>`;
|
||||||
|
|
||||||
if (video.canPlayType("application/vnd.apple.mpegurl")) {
|
if (video.canPlayType("application/vnd.apple.mpegurl")) {
|
||||||
video.src = source;
|
video.src = source;
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
hls.attachMedia(video);
|
hls.attachMedia(video);
|
||||||
} else {
|
} else {
|
||||||
video.outerHTML =
|
video.outerHTML =
|
||||||
"<p>이</p> 브라우저는 HLS 재생을 지원하지 않습니다.</p>";
|
"<p>이 브라우저는 HLS 재생을 지원하지 않습니다.</p>";
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapeHtml(value) {
|
function escapeHtml(value) {
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,10 @@ in
|
||||||
"d ${hlsDir} 0755 nginx nginx - -"
|
"d ${hlsDir} 0755 nginx nginx - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
systemd.services.nginx.serviceConfig.ReadWritePaths = [
|
||||||
|
"/var/lib/nginx-rtmp"
|
||||||
|
];
|
||||||
|
|
||||||
systemd.services.stream-stunnel = {
|
systemd.services.stream-stunnel = {
|
||||||
description = "RTMPS TLS terminator for stream.mizuki.guru";
|
description = "RTMPS TLS terminator for stream.mizuki.guru";
|
||||||
after = [
|
after = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue