@opentok/client 2.30.2-alpha.3 → 2.30.2-alpha.4
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.d.ts +0 -2
- package/dist/js/opentok.js +12 -31
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +4 -4
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
|
@@ -183,7 +183,6 @@ declare namespace OT {
|
|
|
183
183
|
creationTime: number;
|
|
184
184
|
frameRate: number;
|
|
185
185
|
hasAudio: boolean;
|
|
186
|
-
hasCaptions: boolean;
|
|
187
186
|
hasVideo: boolean;
|
|
188
187
|
initials: string;
|
|
189
188
|
name: string;
|
|
@@ -522,7 +521,6 @@ declare namespace OT {
|
|
|
522
521
|
stream: Stream;
|
|
523
522
|
} & (
|
|
524
523
|
{ changedProperty: 'hasAudio'; oldValue: boolean; newValue: boolean; } |
|
|
525
|
-
{ changedProperty: 'hasCaptions'; oldValue: boolean; newValue: boolean; } |
|
|
526
524
|
{ changedProperty: 'hasVideo'; oldValue: boolean; newValue: boolean; } |
|
|
527
525
|
{ changedProperty: 'videoDimensions'; oldValue: Dimensions; newValue: Dimensions; }
|
|
528
526
|
)
|
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.30.2
|
|
2
|
+
* @license OpenTok.js 2.30.2 5b8d84a71
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2025 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: Mon, 02 Jun 2025 20:
|
|
8
|
+
* Date: Mon, 02 Jun 2025 20:25:52 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -4169,7 +4169,7 @@ function EventsFactory(deps) {
|
|
|
4169
4169
|
*
|
|
4170
4170
|
* @class StreamPropertyChangedEvent
|
|
4171
4171
|
* @property {String} changedProperty The property of the stream that changed. This value
|
|
4172
|
-
* is either <code>"hasAudio"</code>, <code>"hasVideo"</code>,
|
|
4172
|
+
* is either <code>"hasAudio"</code>, <code>"hasVideo"</code>, or <code>"videoDimensions"</code>.
|
|
4173
4173
|
* @property {Object} newValue The new value of the property (after the change).
|
|
4174
4174
|
* @property {Object} oldValue The old value of the property (before the change).
|
|
4175
4175
|
* @property {Stream} stream The Stream object for which a property has changed.
|
|
@@ -8672,7 +8672,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8672
8672
|
*/
|
|
8673
8673
|
|
|
8674
8674
|
/** @type builtInConfig */
|
|
8675
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.2","buildHash":"
|
|
8675
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.2","buildHash":"5b8d84a71","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"});
|
|
8676
8676
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8677
8677
|
const liveConfigMap = {
|
|
8678
8678
|
apiUrl: 'apiURL',
|
|
@@ -19639,8 +19639,6 @@ function PublisherFactory(_ref) {
|
|
|
19639
19639
|
* @see <a href="OT.html#initPublisher">OT.initPublisher()</a>
|
|
19640
19640
|
* @see <a href="Subscriber.html#subscribeToCaptions">subscribeToCaptions()</a>
|
|
19641
19641
|
* @see <a href="Subscriber.html#isSubscribedToCaptions">isSubscribedToCaptions()</a>
|
|
19642
|
-
* @see <a href="Stream.html#hasCaptions">Stream.hasCaptions</a>
|
|
19643
|
-
* @see StreamPropertyChangedEvent
|
|
19644
19642
|
* @method #publishCaptions
|
|
19645
19643
|
* @memberOf Publisher
|
|
19646
19644
|
*/
|
|
@@ -24039,12 +24037,6 @@ const validPropertyNames = ['name', 'archiving'];
|
|
|
24039
24037
|
* the publisher of the stream specifies a frame rate when calling the
|
|
24040
24038
|
* <code>OT.initPublisher()</code> method; otherwise, this property is undefined.
|
|
24041
24039
|
*
|
|
24042
|
-
* @property {Boolean} hasCaptions Whether the stream has captions. This property can change if the
|
|
24043
|
-
* publisher turns on or off captions (by calling
|
|
24044
|
-
* <a href="Publisher.html#publishCaptions">Publisher.publishCaptions()</a>). When this occurs, the
|
|
24045
|
-
* {@link Session} object dispatches a <code>streamPropertyChanged</code> event (see
|
|
24046
|
-
* {@link StreamPropertyChangedEvent}).
|
|
24047
|
-
*
|
|
24048
24040
|
* @property {Boolean} hasAudio Whether the stream has audio. This property can change if the
|
|
24049
24041
|
* publisher turns on or off audio (by calling
|
|
24050
24042
|
* <a href="Publisher.html#publishAudio">Publisher.publishAudio()</a>). When this occurs, the
|
|
@@ -24108,13 +24100,7 @@ function Stream(id, name, creationTime, connection, session, channel, initials)
|
|
|
24108
24100
|
let _key = key;
|
|
24109
24101
|
switch (_key) {
|
|
24110
24102
|
case 'active':
|
|
24111
|
-
|
|
24112
|
-
_key = 'hasAudio';
|
|
24113
|
-
} else if (channel.type === 'video') {
|
|
24114
|
-
_key = 'hasVideo';
|
|
24115
|
-
} else if (channel.type === 'data' && channel.id === 'caption1') {
|
|
24116
|
-
_key = 'hasCaptions';
|
|
24117
|
-
}
|
|
24103
|
+
_key = channel.type === 'audio' ? 'hasAudio' : 'hasVideo';
|
|
24118
24104
|
self[_key] = newValue;
|
|
24119
24105
|
break;
|
|
24120
24106
|
case 'disableWarning':
|
|
@@ -24188,13 +24174,11 @@ function Stream(id, name, creationTime, connection, session, channel, initials)
|
|
|
24188
24174
|
|
|
24189
24175
|
const audioChannel = this.getChannelsOfType('audio')[0];
|
|
24190
24176
|
const videoChannel = this.getChannelsOfType('video')[0];
|
|
24191
|
-
const captionChannel = this.getChannelsOfType('data').find(channel => channel.id === 'caption1');
|
|
24192
24177
|
|
|
24193
24178
|
// @todo this should really be: "has at least one video/audio track" instead of
|
|
24194
24179
|
// "the first video/audio track"
|
|
24195
|
-
this.hasAudio =
|
|
24196
|
-
this.hasVideo =
|
|
24197
|
-
this.hasCaptions = !!(captionChannel != null && captionChannel.active);
|
|
24180
|
+
this.hasAudio = audioChannel != null && audioChannel.active;
|
|
24181
|
+
this.hasVideo = videoChannel != null && videoChannel.active;
|
|
24198
24182
|
this.videoType = videoChannel && videoChannel.source;
|
|
24199
24183
|
this.defaultFitMode = videoChannel && videoChannel.fitMode;
|
|
24200
24184
|
this.videoDimensions = {};
|
|
@@ -24205,8 +24189,9 @@ function Stream(id, name, creationTime, connection, session, channel, initials)
|
|
|
24205
24189
|
videoChannel.on('update', onChannelUpdate);
|
|
24206
24190
|
this.frameRate = videoChannel.frameRate;
|
|
24207
24191
|
}
|
|
24208
|
-
|
|
24209
|
-
|
|
24192
|
+
if (audioChannel) {
|
|
24193
|
+
audioChannel.on('update', onChannelUpdate);
|
|
24194
|
+
}
|
|
24210
24195
|
this.setChannelActiveState = function setChannelActiveState(_ref) {
|
|
24211
24196
|
let channelType = _ref.channelType,
|
|
24212
24197
|
activeState = _ref.activeState,
|
|
@@ -40090,7 +40075,6 @@ function SubscriberFactory(_ref2) {
|
|
|
40090
40075
|
*
|
|
40091
40076
|
* @see <a href="#isSubscribedToCaptions">isSubscribedToCaptions()</a>
|
|
40092
40077
|
* @see <a href="#event:captionReceived">captionReceived</a> event
|
|
40093
|
-
* @see <a href="StreamPropertyChangedEvent.html">StreamPropertyChangedEvent</a>
|
|
40094
40078
|
*
|
|
40095
40079
|
* @method #subscribeToCaptions
|
|
40096
40080
|
* @memberOf Subscriber
|
|
@@ -46299,9 +46283,8 @@ function SessionFactory(deps) {
|
|
|
46299
46283
|
* in the following conditions:
|
|
46300
46284
|
* <p>
|
|
46301
46285
|
* <ul>
|
|
46302
|
-
* <li> A stream has started or stopped publishing audio
|
|
46303
|
-
* <a href="Publisher.html#publishAudio">Publisher.publishAudio()</a
|
|
46304
|
-
* <a href="Publisher.html#publishCaptions">Publisher.publishCaptions()</a> and
|
|
46286
|
+
* <li> A stream has started or stopped publishing audio or video (see
|
|
46287
|
+
* <a href="Publisher.html#publishAudio">Publisher.publishAudio()</a> and
|
|
46305
46288
|
* <a href="Publisher.html#publishVideo">Publisher.publishVideo()</a>). Note
|
|
46306
46289
|
* that a subscriber's video can be disabled or enabled for reasons other than
|
|
46307
46290
|
* the publisher disabling or enabling it. A Subscriber object dispatches
|
|
@@ -46322,10 +46305,8 @@ function SessionFactory(deps) {
|
|
|
46322
46305
|
* @memberof Session
|
|
46323
46306
|
* @see StreamPropertyChangedEvent
|
|
46324
46307
|
* @see <a href="Publisher.html#publishAudio">Publisher.publishAudio()</a>
|
|
46325
|
-
* @see <a href="Publisher.html#publishCaptions">Publisher.publishCaptions()</a>
|
|
46326
46308
|
* @see <a href="Publisher.html#publishVideo">Publisher.publishVideo()</a>
|
|
46327
46309
|
* @see <a href="Stream.html#hasAudio">Stream.hasAudio</a>
|
|
46328
|
-
* @see <a href="Stream.html#hasCaptions">Stream.hasCaptions</a>
|
|
46329
46310
|
* @see <a href="Stream.html#hasVideo">Stream.hasVideo</a>
|
|
46330
46311
|
* @see <a href="Stream.html#videoDimensions">Stream.videoDimensions</a>
|
|
46331
46312
|
* @see <a href="Subscriber.html#event:videoDisabled">Subscriber videoDisabled event</a>
|