@ceeblue/web-utils 7.3.1 → 7.4.0
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/web-utils.d.ts +2 -1
- package/dist/web-utils.js +11 -2
- package/dist/web-utils.js.map +1 -1
- package/dist/web-utils.min.js +1 -1
- package/dist/web-utils.min.js.map +1 -1
- package/package.json +1 -1
package/dist/web-utils.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare class BinaryReader {
|
|
|
22
22
|
read64(): number;
|
|
23
23
|
readFloat(): number;
|
|
24
24
|
readDouble(): number;
|
|
25
|
-
read7Bit(
|
|
25
|
+
read7Bit(): number;
|
|
26
26
|
readString(): string;
|
|
27
27
|
readHex(size: number): string;
|
|
28
28
|
/**
|
|
@@ -356,6 +356,7 @@ declare enum Type {
|
|
|
356
356
|
HESP = "HESP",
|
|
357
357
|
WRTS = "WebRTS",
|
|
358
358
|
WEBRTC = "WebRTC",
|
|
359
|
+
DIRECT_STREAMING = "DirectStreaming",
|
|
359
360
|
META = "Meta",
|
|
360
361
|
DATA = "Data"
|
|
361
362
|
}
|
package/dist/web-utils.js
CHANGED
|
@@ -75,7 +75,7 @@ class BinaryReader {
|
|
|
75
75
|
readDouble() {
|
|
76
76
|
return this.next(8) === 8 ? this._view.getFloat64(this._position - 8) : 0;
|
|
77
77
|
}
|
|
78
|
-
read7Bit(
|
|
78
|
+
read7Bit() {
|
|
79
79
|
let result = 0;
|
|
80
80
|
let factor = 1;
|
|
81
81
|
while (this.available()) {
|
|
@@ -1263,6 +1263,7 @@ var Type;
|
|
|
1263
1263
|
Type["HESP"] = "HESP";
|
|
1264
1264
|
Type["WRTS"] = "WebRTS";
|
|
1265
1265
|
Type["WEBRTC"] = "WebRTC";
|
|
1266
|
+
Type["DIRECT_STREAMING"] = "DirectStreaming";
|
|
1266
1267
|
Type["META"] = "Meta";
|
|
1267
1268
|
Type["DATA"] = "Data";
|
|
1268
1269
|
})(Type || (Type = {}));
|
|
@@ -1293,6 +1294,11 @@ function defineMediaExt(type, params) {
|
|
|
1293
1294
|
// Normalize mediaExt in removing the possible '.' prefix and change it to lower case
|
|
1294
1295
|
params.mediaExt = trimStart(params.mediaExt, '.').toLowerCase();
|
|
1295
1296
|
switch (type) {
|
|
1297
|
+
case Type.DIRECT_STREAMING:
|
|
1298
|
+
if (!params.mediaExt) {
|
|
1299
|
+
params.mediaExt = 'mp4';
|
|
1300
|
+
}
|
|
1301
|
+
break;
|
|
1296
1302
|
case Type.HESP:
|
|
1297
1303
|
params.mediaExt = 'mp4';
|
|
1298
1304
|
break;
|
|
@@ -1341,6 +1347,9 @@ function buildURL(type, params, protocol = 'wss') {
|
|
|
1341
1347
|
case Type.WRTS:
|
|
1342
1348
|
url.pathname = '/wrts/' + params.streamName + '.' + params.mediaExt;
|
|
1343
1349
|
break;
|
|
1350
|
+
case Type.DIRECT_STREAMING:
|
|
1351
|
+
url.pathname = '/live/' + params.streamName + '.' + params.mediaExt;
|
|
1352
|
+
break;
|
|
1344
1353
|
case Type.META:
|
|
1345
1354
|
url.pathname = '/json_' + params.streamName + '.js';
|
|
1346
1355
|
break;
|
|
@@ -13688,4 +13697,4 @@ class UIMetrics {
|
|
|
13688
13697
|
* This file is part of https://github.com/CeeblueTV/web-utils which is released under GNU Affero General Public License.
|
|
13689
13698
|
* See file LICENSE or go to https://spdx.org/licenses/AGPL-3.0-or-later.html for full license details.
|
|
13690
13699
|
*/
|
|
13691
|
-
const VERSION = '7.
|
|
13700
|
+
const VERSION = '7.4.0';export{BinaryReader,BinaryWriter,BitReader,ByteRate,index as CML,Connect,EpochTime,EventEmitter,FixMap,Log,LogLevel,Loggable,NetAddress,Numbers,PlayerStats,Queue,SDP,UIMetrics,Util,VERSION,WebSocketReliable,log};//# sourceMappingURL=web-utils.js.map
|