@scrypted/webrtc 0.0.2

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # WebRTC Plugin for Scrypted
2
+
3
+ This plugin acts as a gateway for WebRTC clients and cameras. WebRTC is a core plugin, and should be enabled on all cameras.
4
+
5
+ ## WebRTC Viewer
6
+
7
+ This plugin sends video feeds from Scrypted cameras to WebRTC clients such as Scrypted's management console, Chromecast, Google Home, Alexa, and others.
8
+
9
+ ## WebRTC Cameras
10
+
11
+ This plugin imports video feeds from WebRTC cameras into Scrypted. It must be installed and enabled on Ring and Google (Gen 2) Cameras to import their video feeds into Scrypted.
@@ -0,0 +1,75 @@
1
+ /*!
2
+ * Copyright © 2008 Fair Oaks Labs, Inc.
3
+ * All rights reserved.
4
+ */
5
+
6
+ /*!
7
+ * MIT License
8
+ *
9
+ * Copyright (c) Peculiar Ventures. All rights reserved.
10
+ *
11
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ * of this software and associated documentation files (the "Software"), to deal
13
+ * in the Software without restriction, including without limitation the rights
14
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ * copies of the Software, and to permit persons to whom the Software is
16
+ * furnished to do so, subject to the following conditions:
17
+ *
18
+ * The above copyright notice and this permission notice shall be included in all
19
+ * copies or substantial portions of the Software.
20
+ *
21
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ * SOFTWARE.
28
+ *
29
+ */
30
+
31
+ /*!
32
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
33
+ *
34
+ * Copyright (c) 2014-2017, Jon Schlinkert.
35
+ * Released under the MIT License.
36
+ */
37
+
38
+ /*!
39
+ * isobject <https://github.com/jonschlinkert/isobject>
40
+ *
41
+ * Copyright (c) 2014-2017, Jon Schlinkert.
42
+ * Released under the MIT License.
43
+ */
44
+
45
+ /*! *****************************************************************************
46
+ Copyright (C) Microsoft. All rights reserved.
47
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
48
+ this file except in compliance with the License. You may obtain a copy of the
49
+ License at http://www.apache.org/licenses/LICENSE-2.0
50
+
51
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
52
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
53
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
54
+ MERCHANTABLITY OR NON-INFRINGEMENT.
55
+
56
+ See the Apache Version 2.0 License for specific language governing permissions
57
+ and limitations under the License.
58
+ ***************************************************************************** */
59
+
60
+ /*! *****************************************************************************
61
+ Copyright (c) Microsoft Corporation.
62
+
63
+ Permission to use, copy, modify, and/or distribute this software for any
64
+ purpose with or without fee is hereby granted.
65
+
66
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
67
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
68
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
69
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
70
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
71
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
72
+ PERFORMANCE OF THIS SOFTWARE.
73
+ ***************************************************************************** */
74
+
75
+ /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
Binary file
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@scrypted/webrtc",
3
+ "version": "0.0.2",
4
+ "scripts": {
5
+ "prepublishOnly": "NODE_ENV=production scrypted-webpack",
6
+ "prescrypted-vscode-launch": "scrypted-webpack",
7
+ "scrypted-vscode-launch": "scrypted-deploy-debug",
8
+ "scrypted-deploy-debug": "scrypted-deploy-debug",
9
+ "scrypted-debug": "scrypted-debug",
10
+ "scrypted-deploy": "scrypted-deploy",
11
+ "scrypted-webpack": "scrypted-webpack"
12
+ },
13
+ "keywords": [
14
+ "scrypted",
15
+ "plugin",
16
+ "webrtc"
17
+ ],
18
+ "scrypted": {
19
+ "name": "WebRTC Plugin",
20
+ "type": "API",
21
+ "interfaces": [
22
+ "MixinProvider",
23
+ "DeviceProvider",
24
+ "DeviceCreator"
25
+ ]
26
+ },
27
+ "dependencies": {
28
+ "@koush/werift": "file:../../external/werift/packages/webrtc",
29
+ "@scrypted/common": "file:../../common",
30
+ "@scrypted/sdk": "file:../../sdk",
31
+ "ip": "^1.1.5"
32
+ },
33
+ "devDependencies": {
34
+ "@types/ip": "^1.1.0",
35
+ "@types/node": "^16.6.1"
36
+ }
37
+ }