@volcengine/veplayer-plugin 2.5.0 → 2.5.1-rc.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/esm/index.development.js +34 -17
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +7 -3
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +11 -5
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +1 -1
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +18 -11
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.flv.development.js +7 -3
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +11 -5
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +1 -1
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +18 -11
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -1538,7 +1538,7 @@ util.getCurrentTimeByOffset = function(offsetTime, segments) {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
return offsetTime;
|
|
1540
1540
|
};
|
|
1541
|
-
var version = "3.0.21-rc.
|
|
1541
|
+
var version = "3.0.21-rc.5";
|
|
1542
1542
|
var ERROR_MAP = {
|
|
1543
1543
|
1: 5101,
|
|
1544
1544
|
2: 5102,
|
|
@@ -7666,10 +7666,14 @@ var FlvDemuxer = /* @__PURE__ */ function() {
|
|
|
7666
7666
|
key: "_parseG711",
|
|
7667
7667
|
value: function _parseG711(data, pts, format) {
|
|
7668
7668
|
var track = this.audioTrack;
|
|
7669
|
+
var audioData = data.subarray(1);
|
|
7670
|
+
if (audioData.byteLength < 1)
|
|
7671
|
+
return;
|
|
7672
|
+
var sample = new AudioSample(pts, audioData);
|
|
7669
7673
|
track.codecType = format === 7 ? AudioCodecType.G711PCMA : AudioCodecType.G711PCMU;
|
|
7670
7674
|
track.sampleRate = 8e3;
|
|
7671
7675
|
track.codec = track.codecType;
|
|
7672
|
-
track.samples.push(
|
|
7676
|
+
track.samples.push(sample);
|
|
7673
7677
|
}
|
|
7674
7678
|
}, {
|
|
7675
7679
|
key: "_parseAac",
|
|
@@ -10967,7 +10971,7 @@ var Flv = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
10967
10971
|
_createClass$4(Flv2, [{
|
|
10968
10972
|
key: "version",
|
|
10969
10973
|
get: function get() {
|
|
10970
|
-
return "3.0.21-rc.
|
|
10974
|
+
return "3.0.21-rc.5";
|
|
10971
10975
|
}
|
|
10972
10976
|
}, {
|
|
10973
10977
|
key: "isLive",
|