-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ARG BUILD_FROM | ||
FROM $BUILD_FROM | ||
|
||
RUN apk add --no-cache unzip go jq | ||
|
||
WORKDIR /app | ||
|
||
RUN curl -L https://github.com/deepch/RTSPtoWebRTC/archive/master.zip -o master.zip \ | ||
&& unzip master.zip \ | ||
&& mv RTSPtoWebRTC-master/* . \ | ||
&& go build \ | ||
&& rm -R RTSPtoWebRTC-master master.zip | ||
|
||
COPY run.sh / | ||
RUN chmod a+x /run.sh | ||
|
||
CMD [ "/run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "RTSP2WebRTC", | ||
"version": "0.1.0", | ||
"slug": "rtsp2webrtc", | ||
"description": "RTSP to WebRTC proxy", | ||
"url": "https://github.com/AlexxIT/hassio-addons/tree/master/rtsp2webrtc", | ||
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], | ||
"startup": "system", | ||
"boot": "auto", | ||
"webui": "http://[HOST]:[PORT:8083]/", | ||
"host_network": true, | ||
"options": { | ||
"streams": [{ | ||
"name": "Sonoff", | ||
"url": "rtsp://rtsp:[email protected]:554/av_stream/ch0" | ||
}] | ||
}, | ||
"schema": { | ||
"streams": [{ | ||
"name": "str", | ||
"url": "url" | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/with-contenv bashio | ||
|
||
cat /data/options.json | jq " | ||
{server: {http_port: \":8083\"}, streams: [.streams[] | {(.name): {url: .url}}] | add} | ||
" > /app/config.json | ||
|
||
cat /app/config.json | ||
|
||
/app/RTSPtoWebRTC |