genesys-cloud-streaming-client 15.0.3-develop.34 → 15.0.4-develop.36
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/LICENSE +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/deploy-info.json +5 -5
- package/dist/es/client.js +1 -1
- package/dist/es/index.bundle.js +21 -3
- package/dist/npm/CHANGELOG.md +5 -1
- package/dist/npm/client.js +1 -1
- package/dist/streaming-client.browser.ie.js +2 -2
- package/dist/streaming-client.browser.js +2 -2
- package/dist/v15/streaming-client.browser.ie.js +2 -2
- package/dist/v15/streaming-client.browser.js +2 -2
- package/dist/{v15.0.3 → v15.0.4}/streaming-client.browser.ie.js +2 -2
- package/dist/{v15.0.3 → v15.0.4}/streaming-client.browser.js +2 -2
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Genesys Cloud Services, Inc.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/cjs/client.js
CHANGED
package/dist/deploy-info.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "developercenter-cdn/streaming-client",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.4",
|
|
4
4
|
"ecosystem": "pc",
|
|
5
5
|
"team": "Genesys Client Media (WebRTC)",
|
|
6
6
|
"indexFiles": [
|
|
7
7
|
{
|
|
8
|
-
"file": "/v15.0.
|
|
8
|
+
"file": "/v15.0.4/streaming-client.browser.ie.js"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"file": "/v15.0.
|
|
11
|
+
"file": "/v15.0.4/streaming-client.browser.js"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"file": "/v15/streaming-client.browser.ie.js"
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"file": "/v15/streaming-client.browser.js"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"build": "
|
|
21
|
-
"buildDate": "2023-01-
|
|
20
|
+
"build": "36",
|
|
21
|
+
"buildDate": "2023-01-12T20:47:58.094092Z"
|
|
22
22
|
}
|
package/dist/es/client.js
CHANGED
package/dist/es/index.bundle.js
CHANGED
|
@@ -26935,7 +26935,10 @@ Object.defineProperty(interfaces, "__esModule", { value: true });
|
|
|
26935
26935
|
return _this.gatherStats().then(function (reports) {
|
|
26936
26936
|
var event = _this.createStatsReport(reports, true);
|
|
26937
26937
|
if (event.tracks.length > 0 || event.remoteTracks.length > 0) {
|
|
26938
|
-
|
|
26938
|
+
// If the last five stat events have a remote bitrate of 0, stop emitting.
|
|
26939
|
+
if (_this.checkBitrate(event)) {
|
|
26940
|
+
_this.emit('stats', event);
|
|
26941
|
+
}
|
|
26939
26942
|
}
|
|
26940
26943
|
});
|
|
26941
26944
|
};
|
|
@@ -26944,6 +26947,21 @@ Object.defineProperty(interfaces, "__esModule", { value: true });
|
|
|
26944
26947
|
this.pollingInterval = window.setInterval(statsPoll, this.statsInterval);
|
|
26945
26948
|
}
|
|
26946
26949
|
};
|
|
26950
|
+
StatsGatherer.prototype.checkBitrate = function (stat) {
|
|
26951
|
+
var _a;
|
|
26952
|
+
// If the stat does not have a bitrate of zero, automatically emit and clear the array.
|
|
26953
|
+
if (stat.remoteTracks.length && ((_a = stat.remoteTracks[0]) === null || _a === void 0 ? void 0 : _a.bitrate) !== 0) {
|
|
26954
|
+
this.statsArr = [];
|
|
26955
|
+
return true;
|
|
26956
|
+
}
|
|
26957
|
+
// If we get five consecutive stats with zero bitrate, stop emitting.
|
|
26958
|
+
if (this.statsArr.length >= 5) {
|
|
26959
|
+
return false;
|
|
26960
|
+
}
|
|
26961
|
+
// Record stat with zero bitrate to array.
|
|
26962
|
+
this.statsArr.push(stat);
|
|
26963
|
+
return true;
|
|
26964
|
+
};
|
|
26947
26965
|
StatsGatherer.prototype.polyFillStats = function (results) {
|
|
26948
26966
|
if (!results) {
|
|
26949
26967
|
return [];
|
|
@@ -27099,7 +27117,7 @@ Object.defineProperty(interfaces, "__esModule", { value: true });
|
|
|
27099
27117
|
}
|
|
27100
27118
|
else {
|
|
27101
27119
|
trackInfo.packetsReceived = source.packetsReceived;
|
|
27102
|
-
trackInfo.packetLoss = trackInfo.packetsLost / (trackInfo.packetsReceived
|
|
27120
|
+
trackInfo.packetLoss = trackInfo.packetsLost / (trackInfo.packetsReceived || 1) * 100;
|
|
27103
27121
|
if (lastResultSource) {
|
|
27104
27122
|
trackInfo.intervalPacketsReceived = trackInfo.packetsReceived - lastResultSource.packetsReceived;
|
|
27105
27123
|
trackInfo.intervalPacketsLost = trackInfo.packetsLost - lastPacketsLost;
|
|
@@ -43050,7 +43068,7 @@ class Client extends EventEmitter {
|
|
|
43050
43068
|
return Client.version;
|
|
43051
43069
|
}
|
|
43052
43070
|
static get version() {
|
|
43053
|
-
return '15.0.
|
|
43071
|
+
return '15.0.4';
|
|
43054
43072
|
}
|
|
43055
43073
|
}
|
|
43056
43074
|
|
package/dist/npm/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
# [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.
|
|
7
|
+
# [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.3...HEAD)
|
|
8
|
+
# [v15.0.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.2...v15.0.3)
|
|
9
|
+
### Changed
|
|
10
|
+
* [no-jira] bump stats gatherer
|
|
11
|
+
|
|
8
12
|
# [v15.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.1...v15.0.2)
|
|
9
13
|
### Fixed
|
|
10
14
|
* [PCM-2045](https://inindca.atlassian.net/browse/PCM-2045) - increased timeout for disconnecting
|