@opentok/client 2.27.7 → 2.28.0
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/dist/js/opentok.js +38 -4
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +3 -3
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.
|
|
2
|
+
* @license OpenTok.js 2.28.0 1ea3fa6
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2024 TokBox, Inc.
|
|
5
5
|
* Subject to the applicable Software Development Kit (SDK) License Agreement:
|
|
6
6
|
* https://www.vonage.com/legal/communications-apis/terms-of-use/
|
|
7
7
|
*
|
|
8
|
-
* Date:
|
|
8
|
+
* Date: Wed, 26 Jun 2024 15:49:08 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -6754,7 +6754,23 @@ function EventsFactory(deps) {
|
|
|
6754
6754
|
});
|
|
6755
6755
|
};
|
|
6756
6756
|
|
|
6757
|
-
|
|
6757
|
+
/**
|
|
6758
|
+
* This is a <b>beta</b> feature.
|
|
6759
|
+
* Defines an event object for the <code>mediaStreamAvailable</code> event dispatched by both
|
|
6760
|
+
* the Publisher and Subscriber objects. The Publisher and Subscriber objects both dispatch a <code>mediaStreamAvailable</code>
|
|
6761
|
+
* event when the MediaStream is available to be used in custom video elements. The Publisher and Subscriber objects should still be used to
|
|
6762
|
+
* control all other aspects of the video API such as muting, disconnecting, and more.
|
|
6763
|
+
*
|
|
6764
|
+
* <p>Note that the audio will play through both the custom element and the Publisher or Subscriber widget.
|
|
6765
|
+
* The custom elements should be muted to avoid echo.</p>
|
|
6766
|
+
*
|
|
6767
|
+
* @property {MediaStream} mediaStream The MediaStream object.
|
|
6768
|
+
* @see <a href="Publisher.html#event:mediaStreamAvailable">Publisher mediaStreamAvailable
|
|
6769
|
+
* event</a>
|
|
6770
|
+
* @see <a href="Subscriber.html#event:mediaStreamAvailable">Subscriber mediaStreamAvailable
|
|
6771
|
+
* event</a>
|
|
6772
|
+
* @augments Event
|
|
6773
|
+
*/
|
|
6758
6774
|
Events.MediaStreamAvailable = function MediaStreamAvailable(mediaStream) {
|
|
6759
6775
|
return new _Event4.default('mediaStreamAvailable', false, {
|
|
6760
6776
|
mediaStream
|
|
@@ -7929,7 +7945,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
7929
7945
|
*/
|
|
7930
7946
|
|
|
7931
7947
|
/** @type builtInConfig */
|
|
7932
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.
|
|
7948
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.0","buildHash":"1ea3fa6","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
|
|
7933
7949
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
7934
7950
|
const liveConfigMap = {
|
|
7935
7951
|
apiUrl: 'apiURL',
|
|
@@ -22218,6 +22234,15 @@ function PublisherFactory(_ref) {
|
|
|
22218
22234
|
* @memberof Publisher
|
|
22219
22235
|
*/
|
|
22220
22236
|
|
|
22237
|
+
/**
|
|
22238
|
+
* This is a <b>beta</b> feature.
|
|
22239
|
+
* Dispatched when the MediaStream is available.
|
|
22240
|
+
* @see Event
|
|
22241
|
+
* @name mediaStreamAvailable
|
|
22242
|
+
* @event
|
|
22243
|
+
* @memberof Publisher
|
|
22244
|
+
*/
|
|
22245
|
+
|
|
22221
22246
|
/**
|
|
22222
22247
|
* Dispatched when the Allow/Deny box is closed. (This is the dialog box in which the
|
|
22223
22248
|
* user can grant the app access to the camera and microphone.)
|
|
@@ -37088,6 +37113,15 @@ function SubscriberFactory(_ref2) {
|
|
|
37088
37113
|
* @memberof Subscriber
|
|
37089
37114
|
*/
|
|
37090
37115
|
|
|
37116
|
+
/**
|
|
37117
|
+
* This is a <b>beta</b> feature.
|
|
37118
|
+
* Dispatched when the MediaStream is available.
|
|
37119
|
+
* @see Event
|
|
37120
|
+
* @name mediaStreamAvailable
|
|
37121
|
+
* @event
|
|
37122
|
+
* @memberof Subscriber
|
|
37123
|
+
*/
|
|
37124
|
+
|
|
37091
37125
|
/**
|
|
37092
37126
|
* Dispatched when the subscriber receives a caption from the transcription service.
|
|
37093
37127
|
* You must first call the <a href="Subscriber.html#subscribeToCaptions">Subscriber.subscribeToCaptions()</a>
|