@byteplus/veplayer-plugin 2.8.0-rc.5 → 2.8.0-rc.6
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 +8 -2
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +8 -2
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.rtm.development.js +8 -2
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -4951,6 +4951,7 @@ function getOption(opts) {
|
|
|
4951
4951
|
stallInterval: 400,
|
|
4952
4952
|
networkEvaluateInterval: 1e3,
|
|
4953
4953
|
delayHint: 0,
|
|
4954
|
+
videoDelaySync: false,
|
|
4954
4955
|
seamlesslyReload: false,
|
|
4955
4956
|
enableSei: false,
|
|
4956
4957
|
enableOriginSdpLogger: false,
|
|
@@ -6802,6 +6803,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
6802
6803
|
});
|
|
6803
6804
|
});
|
|
6804
6805
|
_defineProperty$2(_assertThisInitialized$1(_this), "_setDelay", function(delayHint) {
|
|
6806
|
+
var videoDelaySync = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
6805
6807
|
var currentDelay = _this._getDelay();
|
|
6806
6808
|
delayHint = typeof delayHint === "number" && delayHint > 0 ? delayHint : null;
|
|
6807
6809
|
if (currentDelay === delayHint)
|
|
@@ -6818,6 +6820,10 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
6818
6820
|
});
|
|
6819
6821
|
if (key) {
|
|
6820
6822
|
audioReceiver[key] = delayHint;
|
|
6823
|
+
if (!videoDelaySync) {
|
|
6824
|
+
videoReceiver[key] = delayHint;
|
|
6825
|
+
logger.log("set videoReceiver.".concat(key, " = ").concat(delayHint));
|
|
6826
|
+
}
|
|
6821
6827
|
logger.log("set audioReceiver.".concat(key, " = ").concat(delayHint));
|
|
6822
6828
|
}
|
|
6823
6829
|
} catch (error) {
|
|
@@ -7090,7 +7096,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
7090
7096
|
this._videoTransceicer = pc.addTransceiver("video", {
|
|
7091
7097
|
direction: "recvonly"
|
|
7092
7098
|
});
|
|
7093
|
-
!this._opts.enableAdaptiveJitterBuffer && this._setDelay(this._opts.delayHint);
|
|
7099
|
+
!this._opts.enableAdaptiveJitterBuffer && this._setDelay(this._opts.delayHint, this._opts.videoDelaySync);
|
|
7094
7100
|
if (this._opts.enableSei) {
|
|
7095
7101
|
this.initVideoEncodedTransform();
|
|
7096
7102
|
this.initAudioEncodedTransform();
|
|
@@ -7525,7 +7531,7 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
7525
7531
|
}, {
|
|
7526
7532
|
key: "version",
|
|
7527
7533
|
get: function get() {
|
|
7528
|
-
return "0.2.1-alpha.
|
|
7534
|
+
return "0.2.1-alpha.33";
|
|
7529
7535
|
}
|
|
7530
7536
|
}, {
|
|
7531
7537
|
key: "beforePlayerInit",
|