@vonage/client-sdk-video 2.26.3 → 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 +3 -2
- package/dist/js/opentok.js +29855 -29284
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +11 -11
- 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
|
package/dist/js/opentok.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare namespace OT {
|
|
|
61
61
|
|
|
62
62
|
export function setProxyUrl(proxyUrl: string): void;
|
|
63
63
|
|
|
64
|
-
export function getSupportedCodecs(): Promise<{ videoEncoders: ('H264' | 'VP8')[], videoDecoders: ('H264' | 'VP8')[] }>;
|
|
64
|
+
export function getSupportedCodecs(): Promise<{ videoEncoders: ('H264' | 'VP8' | 'VP9')[], videoDecoders: ('H264' | 'VP8' | 'VP9')[] }>;
|
|
65
65
|
|
|
66
66
|
export function hasMediaProcessorSupport(): boolean;
|
|
67
67
|
|
|
@@ -558,6 +558,7 @@ declare namespace OT {
|
|
|
558
558
|
setAudioVolume(volume: number): void;
|
|
559
559
|
setPreferredFrameRate(frameRate: number): void;
|
|
560
560
|
setPreferredResolution(resolution: Dimensions): void;
|
|
561
|
+
setAudioMediaProcessorConnector(connector: MediaProcessorConnector | null): Promise<void>;
|
|
561
562
|
setVideoMediaProcessorConnector(connector: MediaProcessorConnector | null): Promise<void>;
|
|
562
563
|
subscribeToAudio(value: boolean): void;
|
|
563
564
|
subscribeToVideo(value: boolean): void;
|
|
@@ -590,6 +591,6 @@ declare namespace OT {
|
|
|
590
591
|
export function unblockAudio(): Promise<undefined>;
|
|
591
592
|
}
|
|
592
593
|
|
|
593
|
-
declare module "@
|
|
594
|
+
declare module "@vonage/client-sdk-video" {
|
|
594
595
|
export = OT;
|
|
595
596
|
}
|