@opentok/client 2.28.5-alpha.8 → 2.28.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/dist/js/opentok.js +16 -26
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +6 -6
- 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.28.5
|
|
2
|
+
* @license OpenTok.js 2.28.5 383b0af
|
|
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: Fri, 29 Nov 2024 16:39:33 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -3746,11 +3746,8 @@ function EventsFactory(deps) {
|
|
|
3746
3746
|
* @property {cpuPerformanceState} cpuPerformanceState The new cpuPerformanceState. The cpuPerformanceState can
|
|
3747
3747
|
* be one the following: "nominal", "fair", "serious", or "critical";
|
|
3748
3748
|
*
|
|
3749
|
-
* @see <a href="Session.html#event:cpuPerformanceChanged">Session cpuPerformanceChanged event</a>
|
|
3750
|
-
* @class CpuPerformanceChangedEvent
|
|
3751
|
-
* @augments Event
|
|
3752
3749
|
*/
|
|
3753
|
-
Events.
|
|
3750
|
+
Events.CpuPerformanceChanged = function CpuPerformanceChanged(cpuPerformanceState) {
|
|
3754
3751
|
return new _Event4.default('cpuPerformanceChanged', false, {
|
|
3755
3752
|
cpuPerformanceState
|
|
3756
3753
|
});
|
|
@@ -3762,15 +3759,11 @@ function EventsFactory(deps) {
|
|
|
3762
3759
|
* range from 5 to 1, with the integer values corresponding to Excellent | Good | Fair | Poor | Bad.
|
|
3763
3760
|
* This is a <b>beta</b> feature.
|
|
3764
3761
|
*
|
|
3765
|
-
* @class QualityScoreChangedEvent
|
|
3766
|
-
* @augments Event
|
|
3767
|
-
* @see <a href="Subscriber.html#event:qualityScoreChanged">Subscriber qualityScoreChanged event</a>
|
|
3768
|
-
*
|
|
3769
3762
|
* @property {QualityScore} qualityScore most recent quality score. The event contains
|
|
3770
3763
|
* a qualityScore object with optional audio and video properties.
|
|
3771
3764
|
*
|
|
3772
3765
|
*/
|
|
3773
|
-
Events.
|
|
3766
|
+
Events.QualityScoreChanged = function qualityScoreChanged(qualityScore) {
|
|
3774
3767
|
return new _Event4.default('qualityScoreChanged', false, {
|
|
3775
3768
|
qualityScore
|
|
3776
3769
|
});
|
|
@@ -3819,10 +3812,9 @@ function EventsFactory(deps) {
|
|
|
3819
3812
|
* event</a>
|
|
3820
3813
|
* @see <a href="Subscriber.html#event:mediaStreamAvailable">Subscriber mediaStreamAvailable
|
|
3821
3814
|
* event</a>
|
|
3822
|
-
* @class MediaStreamAvailableEvent
|
|
3823
3815
|
* @augments Event
|
|
3824
3816
|
*/
|
|
3825
|
-
Events.
|
|
3817
|
+
Events.MediaStreamAvailable = function MediaStreamAvailable(mediaStream) {
|
|
3826
3818
|
return new _Event4.default('mediaStreamAvailable', false, {
|
|
3827
3819
|
mediaStream
|
|
3828
3820
|
});
|
|
@@ -3968,10 +3960,10 @@ function EventsFactory(deps) {
|
|
|
3968
3960
|
*
|
|
3969
3961
|
* @see <a href="Publisher.html#event:audioInputDeviceChanged">Publisher audioInputDeviceChanged event</a></p>
|
|
3970
3962
|
* @see <a href="Publisher.html#setAudioSource">Publisher.setAudioSource()</a></p>
|
|
3971
|
-
* @class
|
|
3963
|
+
* @class AudioInputDeviceChanged
|
|
3972
3964
|
* @augments Event
|
|
3973
3965
|
*/
|
|
3974
|
-
Events.
|
|
3966
|
+
Events.AudioInputDeviceChanged = function AudioInputDeviceChanged(device) {
|
|
3975
3967
|
return new _Event4.default(_eventNames.default.AUDIO_INPUT_DEVICE_CHANGED, false, {
|
|
3976
3968
|
device
|
|
3977
3969
|
});
|
|
@@ -8115,7 +8107,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8115
8107
|
*/
|
|
8116
8108
|
|
|
8117
8109
|
/** @type builtInConfig */
|
|
8118
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.5","buildHash":"
|
|
8110
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.28.5","buildHash":"383b0af","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"});
|
|
8119
8111
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8120
8112
|
const liveConfigMap = {
|
|
8121
8113
|
apiUrl: 'apiURL',
|
|
@@ -18698,7 +18690,7 @@ function PublisherFactory(_ref) {
|
|
|
18698
18690
|
}
|
|
18699
18691
|
});
|
|
18700
18692
|
widgetView.on('videoElementCreated', element => {
|
|
18701
|
-
this.dispatchEvent(new Events.
|
|
18693
|
+
this.dispatchEvent(new Events.MediaStreamAvailable(webRTCStream));
|
|
18702
18694
|
const event = new Events.VideoElementCreatedEvent(element);
|
|
18703
18695
|
this.dispatchEvent(event);
|
|
18704
18696
|
});
|
|
@@ -22522,7 +22514,7 @@ function PublisherFactory(_ref) {
|
|
|
22522
22514
|
* This is a beta feature.
|
|
22523
22515
|
*
|
|
22524
22516
|
* @see Event
|
|
22525
|
-
* @see
|
|
22517
|
+
* @see AudioInputDeviceChanged
|
|
22526
22518
|
* @name audioInputDeviceChanged
|
|
22527
22519
|
* @event
|
|
22528
22520
|
* @memberof Publisher
|
|
@@ -34648,7 +34640,7 @@ function SubscriberFactory(_ref2) {
|
|
|
34648
34640
|
_session2 = _session, sessionInfo = _session2.sessionInfo;
|
|
34649
34641
|
if (!_exposedWebRTCStream) {
|
|
34650
34642
|
_exposedWebRTCStream = new MediaStream(webRTCStream);
|
|
34651
|
-
_this.dispatchEvent(new Events.
|
|
34643
|
+
_this.dispatchEvent(new Events.MediaStreamAvailable(_exposedWebRTCStream));
|
|
34652
34644
|
}
|
|
34653
34645
|
_webRTCStream = webRTCStream;
|
|
34654
34646
|
|
|
@@ -37583,7 +37575,7 @@ function SubscriberFactory(_ref2) {
|
|
|
37583
37575
|
* @name qualityScoreChanged
|
|
37584
37576
|
* @event
|
|
37585
37577
|
* @memberof Subscriber
|
|
37586
|
-
* @see
|
|
37578
|
+
* @see qualityScoreChangedEvent
|
|
37587
37579
|
*/
|
|
37588
37580
|
return this;
|
|
37589
37581
|
};
|
|
@@ -64430,7 +64422,7 @@ function SessionFactory(deps) {
|
|
|
64430
64422
|
cpuPressureMonitor.initMonitoring(PressureObserver);
|
|
64431
64423
|
cpuPressureMonitor.startMonitoring();
|
|
64432
64424
|
cpuPressureMonitor.on('pressureMonitorEvent', newState => {
|
|
64433
|
-
this.dispatchEvent(new Events.
|
|
64425
|
+
this.dispatchEvent(new Events.CpuPerformanceChanged(newState));
|
|
64434
64426
|
});
|
|
64435
64427
|
}
|
|
64436
64428
|
|
|
@@ -69722,13 +69714,12 @@ OT.ArchiveEvent = Events.ArchiveEvent;
|
|
|
69722
69714
|
OT.ArchiveUpdatedEvent = Events.ArchiveUpdatedEvent;
|
|
69723
69715
|
OT.AudioLevelTransformer = _audio_level_transformer.default;
|
|
69724
69716
|
OT.AudioLevelUpdatedEvent = Events.AudioLevelUpdatedEvent;
|
|
69725
|
-
OT.
|
|
69717
|
+
OT.AudioInputDeviceChanged = Events.AudioInputDeviceChanged;
|
|
69726
69718
|
OT.Capabilities = _capabilities.default;
|
|
69727
69719
|
OT.Chrome = _chrome.default;
|
|
69728
69720
|
OT.Connection = _connection.default;
|
|
69729
69721
|
OT.ConnectionCapabilities = OT.Connection.Capabilities;
|
|
69730
69722
|
OT.ConnectionEvent = Events.ConnectionEvent;
|
|
69731
|
-
OT.CpuPerformanceChangedEvent = Events.CpuPerformanceChangedEvent;
|
|
69732
69723
|
Object.keys(_logLevels.default).forEach(name => {
|
|
69733
69724
|
OT[name.toUpperCase()] = _logLevels.default[name].priority;
|
|
69734
69725
|
});
|
|
@@ -69766,7 +69757,6 @@ OT.HAS_REQUIREMENTS = 1;
|
|
|
69766
69757
|
OT.IntervalRunner = _interval_runner.default;
|
|
69767
69758
|
OT.IssueReportedEvent = Events.IssueReportedEvent;
|
|
69768
69759
|
OT.MediaStoppedEvent = Events.MediaStoppedEvent;
|
|
69769
|
-
OT.MediaStreamAvailableEvent = Events.MediaStreamAvailableEvent;
|
|
69770
69760
|
OT.Microphone = Microphone;
|
|
69771
69761
|
OT.NOT_HAS_REQUIREMENTS = 0;
|
|
69772
69762
|
OT.PeerConnection = PeerConnection;
|
|
@@ -95426,7 +95416,7 @@ const createMOSScoreHelper = () => ({
|
|
|
95426
95416
|
if (previousVideoScore !== currentVideoScore || previousAudioScore !== currentAudioScore) {
|
|
95427
95417
|
// Don't emit an empty object
|
|
95428
95418
|
if (Object.keys(qualityScore).length > 0) {
|
|
95429
|
-
subscriber.dispatchEvent(new Events.
|
|
95419
|
+
subscriber.dispatchEvent(new Events.QualityScoreChanged(qualityScore));
|
|
95430
95420
|
}
|
|
95431
95421
|
}
|
|
95432
95422
|
previousAudioScore = currentAudioScore;
|
|
@@ -97815,7 +97805,7 @@ var _default = function _default(deps) {
|
|
|
97815
97805
|
_context.next = 9;
|
|
97816
97806
|
return publisher.setAudioSource(device.deviceId);
|
|
97817
97807
|
case 9:
|
|
97818
|
-
publisher.dispatchEvent(Events.
|
|
97808
|
+
publisher.dispatchEvent(Events.AudioInputDeviceChanged(device));
|
|
97819
97809
|
case 10:
|
|
97820
97810
|
case "end":
|
|
97821
97811
|
return _context.stop();
|