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