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