@opentok/client 2.30.2-alpha.1 → 2.30.2-alpha.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/dist/js/opentok.js +14 -4
- 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.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.30.2
|
|
2
|
+
* @license OpenTok.js 2.30.2 d09e35ae4
|
|
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:
|
|
8
|
+
* Date: Mon, 02 Jun 2025 13:44:24 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -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":"d09e35ae4","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',
|
|
@@ -19311,7 +19311,17 @@ function PublisherFactory(_ref) {
|
|
|
19311
19311
|
});
|
|
19312
19312
|
widgetView.on('mediaStopped', track => {
|
|
19313
19313
|
const event = new Events.MediaStoppedEvent(this, track);
|
|
19314
|
-
|
|
19314
|
+
|
|
19315
|
+
// When we have a disabled and transformed media track, we don't dispatch the event since
|
|
19316
|
+
// it is not a media source stop. This is the case when we call publishVideo(false) or
|
|
19317
|
+
// cycleVideo(), where the transformed track is stopped.
|
|
19318
|
+
const isDisabledTransformedTrack = (track == null ? void 0 : track.readyState) === 'ended' &&
|
|
19319
|
+
// Only transformed tracks have the writable property.
|
|
19320
|
+
// See: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackGenerator/writable
|
|
19321
|
+
!!(track != null && track.writable);
|
|
19322
|
+
if (!isDisabledTransformedTrack) {
|
|
19323
|
+
this.dispatchEvent(event);
|
|
19324
|
+
}
|
|
19315
19325
|
if (event.isDefaultPrevented()) {
|
|
19316
19326
|
return;
|
|
19317
19327
|
}
|