Bugfix to camera-ustreamer (#66)

This commit is contained in:
Fredrik Baberg 2023-03-16 13:00:40 +01:00 committed by GitHub
parent 4dd0b4fbdc
commit 1955b6566b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 11 deletions

View File

@ -87,6 +87,8 @@ RUN apk add -U \
COPY rootfs/ /
RUN cp /opt/janus/share/janus/javascript/janus.js /server
WORKDIR /
# Make files executable

View File

@ -10,7 +10,8 @@
# External access
:80 {
root * /opt/janus/share/janus/demos
# root * /opt/janus/share/janus/demos
root * /server
handle_path /janus/* {
reverse_proxy localhost:8188 # Janus API
}

View File

@ -1,9 +0,0 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Add-on: camera-ustreamer
# Take down the S6 supervision tree when ustreamer fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services

View File

@ -31,7 +31,7 @@
// Establish a WebSockets connection to the server.
const janus = new Janus({
// Specify the URL of the Janus servers WebSockets endpoint.
server: `ws://${window.location.hostname}:8188/`,
server: `ws://${window.location.hostname}/janus/`,
// Callback function if the client connects successfully.
success: attachUStreamerPlugin,