Bugfix to camera-ustreamer (#66)
This commit is contained in:
parent
4dd0b4fbdc
commit
1955b6566b
@ -87,6 +87,8 @@ RUN apk add -U \
|
||||
|
||||
COPY rootfs/ /
|
||||
|
||||
RUN cp /opt/janus/share/janus/javascript/janus.js /server
|
||||
|
||||
WORKDIR /
|
||||
|
||||
# Make files executable
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
@ -31,7 +31,7 @@
|
||||
// Establish a WebSockets connection to the server.
|
||||
const janus = new Janus({
|
||||
// Specify the URL of the Janus server’s WebSockets endpoint.
|
||||
server: `ws://${window.location.hostname}:8188/`,
|
||||
server: `ws://${window.location.hostname}/janus/`,
|
||||
|
||||
// Callback function if the client connects successfully.
|
||||
success: attachUStreamerPlugin,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user