@vonage/client-sdk-video 2.26.4 → 2.26.5
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 +10 -10
- package/dist/js/opentok.d.ts +1 -1
- package/dist/js/opentok.js +28474 -28467
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +9 -9
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vonage Video API
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/%40vonage%2Fclient-sdk-video)
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The Vonage Video API library lets you use Vonage-powered video sessions on the web.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
yarn add @
|
|
10
|
+
yarn add @vonage/client-sdk-video
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
or
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
npm install --save @
|
|
16
|
+
npm install --save @vonage/client-sdk-video
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
@@ -25,11 +25,11 @@ The library is bundled as a standalone UMD module so it is CommonJS compatible.
|
|
|
25
25
|
Create your application file `app.js`:
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
const OT = require('@
|
|
28
|
+
const OT = require('@vonage/client-sdk-video');
|
|
29
29
|
const publisher = OT.initPublisher();
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Bundle the application with your
|
|
32
|
+
Bundle the application with your favorite bundler. For browserify just run:
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
browserify app.js > bundle.js
|
|
@@ -50,14 +50,14 @@ Include the `dist/js/opentok.min.js` script in your webpage.
|
|
|
50
50
|
Then use the `OT` object exposed in the global scope.
|
|
51
51
|
|
|
52
52
|
```html
|
|
53
|
-
<script src="node_modules/@
|
|
53
|
+
<script src="node_modules/@vonage/client-sdk-video/dist/js/opentok.min.js"></script>
|
|
54
54
|
<script>
|
|
55
55
|
const publisher = OT.initPublisher();
|
|
56
56
|
</script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
*Note:*
|
|
59
|
+
*Note:* Vonage Video API automatically loads CSS and image files from the TokBox CDN when included in a webpage.
|
|
60
60
|
|
|
61
61
|
## Documentation
|
|
62
62
|
|
|
63
|
-
The API reference and tutorials can be found at https://
|
|
63
|
+
The API reference and tutorials can be found at https://developer.vonage.com/en/video/client-sdks/web/overview
|