webrtc-streamer 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/devcontainer.json +4 -5
- package/.vscode/c_cpp_properties.json +2 -1
- package/.vscode/settings.json +74 -1
- package/README.md +21 -21
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webrtc-streamer",
|
|
3
|
-
"image": "ghcr.io/mpromonet/webrtc-streamer:dev",
|
|
3
|
+
"image": "ghcr.io/mpromonet/webrtc-streamer:master-dev",
|
|
4
4
|
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", "--privileged"],
|
|
5
5
|
|
|
6
6
|
"customizations": {
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
},
|
|
13
13
|
"mounts": [
|
|
14
14
|
"source=profile,target=/home/dev,type=volume",
|
|
15
|
-
"source=webrtc,target=/webrtc/src/out,type=volume",
|
|
15
|
+
"source=webrtc,target=/build/webrtc/src/out,type=volume",
|
|
16
16
|
"target=/home/dev/.vscode-server,type=volume"
|
|
17
17
|
],
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"workspaceMount": "source=${localWorkspaceFolder},target=/webrtc-streamer,type=bind",
|
|
18
|
+
"workspaceFolder": "/build/webrtc-streamer",
|
|
19
|
+
"workspaceMount": "source=${localWorkspaceFolder},target=/build/webrtc-streamer,type=bind",
|
|
21
20
|
"forwardPorts": [8000]
|
|
22
21
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"name": "default",
|
|
5
5
|
"includePath": [
|
|
6
6
|
"${workspaceFolder}/**",
|
|
7
|
-
"${workspaceFolder}/../webrtc/src",
|
|
7
|
+
"${workspaceFolder}/../webrtc/src/api",
|
|
8
|
+
"${workspaceFolder}/../webrtc/src/media",
|
|
8
9
|
"${workspaceFolder}/../webrtc/src/third_party/abseil-cpp",
|
|
9
10
|
"${workspaceFolder}/../webrtc/src/third_party/jsoncpp/source/include",
|
|
10
11
|
"${workspaceFolder}/../webrtc/src/third_party/jsoncpp/generated"
|
package/.vscode/settings.json
CHANGED
|
@@ -5,6 +5,79 @@
|
|
|
5
5
|
"string_view": "cpp",
|
|
6
6
|
"ranges": "cpp",
|
|
7
7
|
"span": "cpp",
|
|
8
|
-
"vector": "cpp"
|
|
8
|
+
"vector": "cpp",
|
|
9
|
+
"cstdint": "cpp",
|
|
10
|
+
"bitset": "cpp",
|
|
11
|
+
"format": "cpp",
|
|
12
|
+
"initializer_list": "cpp",
|
|
13
|
+
"regex": "cpp",
|
|
14
|
+
"valarray": "cpp",
|
|
15
|
+
"chrono": "cpp",
|
|
16
|
+
"any": "cpp",
|
|
17
|
+
"atomic": "cpp",
|
|
18
|
+
"strstream": "cpp",
|
|
19
|
+
"bit": "cpp",
|
|
20
|
+
"*.tcc": "cpp",
|
|
21
|
+
"cctype": "cpp",
|
|
22
|
+
"cfenv": "cpp",
|
|
23
|
+
"charconv": "cpp",
|
|
24
|
+
"cinttypes": "cpp",
|
|
25
|
+
"clocale": "cpp",
|
|
26
|
+
"cmath": "cpp",
|
|
27
|
+
"codecvt": "cpp",
|
|
28
|
+
"compare": "cpp",
|
|
29
|
+
"concepts": "cpp",
|
|
30
|
+
"condition_variable": "cpp",
|
|
31
|
+
"csignal": "cpp",
|
|
32
|
+
"cstdarg": "cpp",
|
|
33
|
+
"cstddef": "cpp",
|
|
34
|
+
"cstdio": "cpp",
|
|
35
|
+
"cstdlib": "cpp",
|
|
36
|
+
"cstring": "cpp",
|
|
37
|
+
"ctime": "cpp",
|
|
38
|
+
"cwchar": "cpp",
|
|
39
|
+
"cwctype": "cpp",
|
|
40
|
+
"deque": "cpp",
|
|
41
|
+
"forward_list": "cpp",
|
|
42
|
+
"list": "cpp",
|
|
43
|
+
"map": "cpp",
|
|
44
|
+
"set": "cpp",
|
|
45
|
+
"unordered_map": "cpp",
|
|
46
|
+
"unordered_set": "cpp",
|
|
47
|
+
"exception": "cpp",
|
|
48
|
+
"algorithm": "cpp",
|
|
49
|
+
"functional": "cpp",
|
|
50
|
+
"iterator": "cpp",
|
|
51
|
+
"memory": "cpp",
|
|
52
|
+
"memory_resource": "cpp",
|
|
53
|
+
"numeric": "cpp",
|
|
54
|
+
"optional": "cpp",
|
|
55
|
+
"random": "cpp",
|
|
56
|
+
"ratio": "cpp",
|
|
57
|
+
"system_error": "cpp",
|
|
58
|
+
"tuple": "cpp",
|
|
59
|
+
"type_traits": "cpp",
|
|
60
|
+
"utility": "cpp",
|
|
61
|
+
"fstream": "cpp",
|
|
62
|
+
"future": "cpp",
|
|
63
|
+
"iomanip": "cpp",
|
|
64
|
+
"iosfwd": "cpp",
|
|
65
|
+
"iostream": "cpp",
|
|
66
|
+
"istream": "cpp",
|
|
67
|
+
"limits": "cpp",
|
|
68
|
+
"mutex": "cpp",
|
|
69
|
+
"new": "cpp",
|
|
70
|
+
"numbers": "cpp",
|
|
71
|
+
"ostream": "cpp",
|
|
72
|
+
"scoped_allocator": "cpp",
|
|
73
|
+
"semaphore": "cpp",
|
|
74
|
+
"sstream": "cpp",
|
|
75
|
+
"stdexcept": "cpp",
|
|
76
|
+
"stop_token": "cpp",
|
|
77
|
+
"streambuf": "cpp",
|
|
78
|
+
"thread": "cpp",
|
|
79
|
+
"typeindex": "cpp",
|
|
80
|
+
"typeinfo": "cpp",
|
|
81
|
+
"variant": "cpp"
|
|
9
82
|
}
|
|
10
83
|
}
|
package/README.md
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
[](https://github.com/mpromonet/webrtc-streamer/releases/latest)
|
|
15
15
|
[](https://hub.docker.com/r/mpromonet/webrtc-streamer/)
|
|
16
16
|
|
|
17
|
-
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/)
|
|
18
18
|
[](https://gitpod.io/#https://github.com/mpromonet/webrtc-streamer)
|
|
19
19
|
|
|
20
|
-
Experimentation to stream WebRTC media sources like capture devices, screen capture, mkv files and RMTP/RTSP sources using simple signaling mechanism (see [api](docs/api.md)).
|
|
20
|
+
Experimentation to stream WebRTC media sources like capture devices, screen capture, mkv files and RMTP/RTSP sources using simple signaling mechanism (see [api](docs/api.md)). It is also compatible with [WHEP](https://datatracker.ietf.org/doc/html/draft-ietf-wish-whep-01) interface.
|
|
21
21
|
|
|
22
22
|
## Artefacts
|
|
23
23
|
|
|
@@ -91,22 +91,22 @@ Options for the WebRTC stream name:
|
|
|
91
91
|
./webrtc-streamer -C config.json
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
[](https://
|
|
94
|
+
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/)
|
|
95
95
|
|
|
96
|
-
[Live Demo](https://
|
|
96
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/)
|
|
97
97
|
|
|
98
98
|
We can access to the WebRTC stream using
|
|
99
99
|
[webrtcstreamer.html](https://github.com/mpromonet/webrtc-streamer-html/blob/master/webrtcstreamer.html).
|
|
100
100
|
For instance:
|
|
101
101
|
|
|
102
|
-
- [webrtcstreamer.html?rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov](https://
|
|
103
|
-
- [webrtcstreamer.html?Bunny](https://
|
|
102
|
+
- [webrtcstreamer.html?rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/webrtcstreamer.html?rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov)
|
|
103
|
+
- [webrtcstreamer.html?Bunny](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/webrtcstreamer.html?Bunny)
|
|
104
104
|
|
|
105
105
|
An example displaying grid of WebRTC Streams is available using option
|
|
106
106
|
`layout=<lines>x<columns>`
|
|
107
|
-
[](https://
|
|
107
|
+
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x4)
|
|
108
108
|
|
|
109
|
-
[Live Demo](https://
|
|
109
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x4)
|
|
110
110
|
|
|
111
111
|
## Using docker image
|
|
112
112
|
|
|
@@ -216,23 +216,23 @@ display a WebRTC stream in an HTML page. For example:
|
|
|
216
216
|
</html>
|
|
217
217
|
```
|
|
218
218
|
|
|
219
|
-
[Live Demo](https://
|
|
219
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/Bunny.html)
|
|
220
220
|
|
|
221
221
|
Using the webcomponent with a stream selector:
|
|
222
222
|
|
|
223
|
-
[](https://
|
|
223
|
+
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/webrtc-streamer-element.html)
|
|
224
224
|
|
|
225
|
-
[Live Demo](https://
|
|
225
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/webrtc-streamer-element.html)
|
|
226
226
|
|
|
227
227
|
Using the webcomponent over google map:
|
|
228
228
|
|
|
229
|
-
[](https://
|
|
229
|
+
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/map.html)
|
|
230
230
|
|
|
231
|
-
[Live Demo](https://
|
|
231
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/map.html)
|
|
232
232
|
|
|
233
233
|
## Using WHEP
|
|
234
234
|
|
|
235
|
-
It allow to stream using draft standard [WHEP](https://
|
|
235
|
+
It allow to stream using draft standard [WHEP](https://datatracker.ietf.org/doc/html/draft-ietf-wish-whep-01)
|
|
236
236
|
|
|
237
237
|
[WebRTC player](https://github.com/Eyevinn/webrtc-player) can display WebRTC stream from webrtc-streamer.
|
|
238
238
|
|
|
@@ -255,9 +255,9 @@ A minimal example:
|
|
|
255
255
|
|
|
256
256
|
## Object detection using tensorflow.js
|
|
257
257
|
|
|
258
|
-
[](https://
|
|
258
|
+
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/tensorflow.html)
|
|
259
259
|
|
|
260
|
-
[Live Demo](https://
|
|
260
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/tensorflow.html)
|
|
261
261
|
|
|
262
262
|
## Connect to Janus Gateway Video Room
|
|
263
263
|
|
|
@@ -285,13 +285,13 @@ A short sample to publish WebRTC streams to Janus Video Room could be:
|
|
|
285
285
|
</html>
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
[](https://
|
|
288
|
+
[](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/janusvideoroom.html)
|
|
289
289
|
|
|
290
|
-
[Live Demo](https://
|
|
290
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/janusvideoroom.html)
|
|
291
291
|
|
|
292
292
|
This way the communication between
|
|
293
293
|
[Janus API](https://janus.conf.meetecho.com/docs/JS.html) and
|
|
294
|
-
[WebRTC Streamer API](https://
|
|
294
|
+
[WebRTC Streamer API](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/help)
|
|
295
295
|
is implemented in Javascript running in browser.
|
|
296
296
|
|
|
297
297
|
The same logic could be implemented in NodeJS using the same JS API:
|
|
@@ -336,7 +336,7 @@ A short sample to publish WebRTC streams to a Jitsi Video Room could be:
|
|
|
336
336
|
</html>
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
[Live Demo](https://
|
|
339
|
+
[Live Demo](https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/xmppvideoroom.html)
|
|
340
340
|
|
|
341
341
|
## Dependencies
|
|
342
342
|
|
|
@@ -364,7 +364,7 @@ dependencies above:
|
|
|
364
364
|
```sh
|
|
365
365
|
mkdir ../webrtc
|
|
366
366
|
pushd ../webrtc
|
|
367
|
-
fetch
|
|
367
|
+
fetch webrtc
|
|
368
368
|
popd
|
|
369
369
|
```
|
|
370
370
|
|