@volcengine/veplayer-plugin 2.5.0 → 2.5.1-rc.1
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
package/package.json
CHANGED
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
}
|
|
1543
1543
|
return offsetTime;
|
|
1544
1544
|
};
|
|
1545
|
-
var version = "3.0.21-rc.
|
|
1545
|
+
var version = "3.0.21-rc.5";
|
|
1546
1546
|
var ERROR_MAP = {
|
|
1547
1547
|
1: 5101,
|
|
1548
1548
|
2: 5102,
|
|
@@ -7670,10 +7670,14 @@
|
|
|
7670
7670
|
key: "_parseG711",
|
|
7671
7671
|
value: function _parseG711(data, pts, format) {
|
|
7672
7672
|
var track = this.audioTrack;
|
|
7673
|
+
var audioData = data.subarray(1);
|
|
7674
|
+
if (audioData.byteLength < 1)
|
|
7675
|
+
return;
|
|
7676
|
+
var sample = new AudioSample(pts, audioData);
|
|
7673
7677
|
track.codecType = format === 7 ? AudioCodecType.G711PCMA : AudioCodecType.G711PCMU;
|
|
7674
7678
|
track.sampleRate = 8e3;
|
|
7675
7679
|
track.codec = track.codecType;
|
|
7676
|
-
track.samples.push(
|
|
7680
|
+
track.samples.push(sample);
|
|
7677
7681
|
}
|
|
7678
7682
|
}, {
|
|
7679
7683
|
key: "_parseAac",
|
|
@@ -10971,7 +10975,7 @@
|
|
|
10971
10975
|
_createClass$4(Flv2, [{
|
|
10972
10976
|
key: "version",
|
|
10973
10977
|
get: function get() {
|
|
10974
|
-
return "3.0.21-rc.
|
|
10978
|
+
return "3.0.21-rc.5";
|
|
10975
10979
|
}
|
|
10976
10980
|
}, {
|
|
10977
10981
|
key: "isLive",
|