@byteplus/vepusher 2.0.4-rc.17 → 2.0.4-rc.18
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/index.es.js +26 -17
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8913,7 +8913,7 @@ class ov {
|
|
|
8913
8913
|
page_path_fe: window.location.pathname || "unknown",
|
|
8914
8914
|
page_host_fe: window.location.hostname || "unknown",
|
|
8915
8915
|
sdk_version: "2.0.3",
|
|
8916
|
-
build_version: "1.0.0.
|
|
8916
|
+
build_version: "1.0.0.138",
|
|
8917
8917
|
...n
|
|
8918
8918
|
}
|
|
8919
8919
|
};
|
|
@@ -11229,9 +11229,10 @@ const Gv = async () => {
|
|
|
11229
11229
|
async getSdpWithSdp({
|
|
11230
11230
|
url: e,
|
|
11231
11231
|
offer: t,
|
|
11232
|
-
|
|
11232
|
+
frameRate: n,
|
|
11233
|
+
isReconnect: i
|
|
11233
11234
|
}) {
|
|
11234
|
-
var
|
|
11235
|
+
var a;
|
|
11235
11236
|
return await bu(
|
|
11236
11237
|
e,
|
|
11237
11238
|
{
|
|
@@ -11242,13 +11243,14 @@ const Gv = async () => {
|
|
|
11242
11243
|
version: "1.0-html",
|
|
11243
11244
|
localSdp: t,
|
|
11244
11245
|
metadata: {
|
|
11245
|
-
platform: "Web"
|
|
11246
|
+
platform: "Web",
|
|
11247
|
+
framerate: n
|
|
11246
11248
|
}
|
|
11247
11249
|
})
|
|
11248
11250
|
},
|
|
11249
11251
|
{
|
|
11250
11252
|
...this._opts,
|
|
11251
|
-
timeout:
|
|
11253
|
+
timeout: i ? 10 * Kc : (a = this._opts) == null ? void 0 : a.timeout
|
|
11252
11254
|
}
|
|
11253
11255
|
);
|
|
11254
11256
|
}
|
|
@@ -11292,6 +11294,7 @@ const Gv = async () => {
|
|
|
11292
11294
|
if (pt.instance.getCustomRTMAnswerSdp ? d = await this.getCustomRTMAnswerSdp(s) : d = await this.getSdpWithSdp({
|
|
11293
11295
|
url: this._signalUrl,
|
|
11294
11296
|
offer: s,
|
|
11297
|
+
frameRate: n == null ? void 0 : n.frameRate,
|
|
11295
11298
|
isReconnect: n == null ? void 0 : n.isReconnect
|
|
11296
11299
|
}), (d == null ? void 0 : d.code) !== 200)
|
|
11297
11300
|
throw {
|
|
@@ -16256,7 +16259,7 @@ class dS extends Su {
|
|
|
16256
16259
|
return this._prevStats;
|
|
16257
16260
|
}
|
|
16258
16261
|
async startPush(e, t = {}) {
|
|
16259
|
-
var a, s, d;
|
|
16262
|
+
var a, s, d, c, u, f;
|
|
16260
16263
|
if (t.isReconnect || (this._pushSessionId = Date.now(), X(J.START_PUSH, {
|
|
16261
16264
|
push_url: e,
|
|
16262
16265
|
session_id: this._pushSessionId
|
|
@@ -16317,25 +16320,31 @@ class dS extends Su {
|
|
|
16317
16320
|
throw new Error(`not support push mode: ${this._pushMode}`);
|
|
16318
16321
|
this._connect = o;
|
|
16319
16322
|
try {
|
|
16320
|
-
!t.isReconnect && ((a = this._reconnectStrategy) != null && a.isActive()) && this._reconnectStrategy.stop({ quiet: !0 }), (s = this._reconnectStrategy) != null && s.isActive() || this.setConnectState(qe.CONNECTING)
|
|
16323
|
+
!t.isReconnect && ((a = this._reconnectStrategy) != null && a.isActive()) && this._reconnectStrategy.stop({ quiet: !0 }), (s = this._reconnectStrategy) != null && s.isActive() || this.setConnectState(qe.CONNECTING);
|
|
16324
|
+
let h;
|
|
16325
|
+
((d = this._composedStream.videoStream) == null ? void 0 : d.frameRate) !== 1 ? h = (c = this._composedStream.videoStream) == null ? void 0 : c.frameRate : h = (u = n == null ? void 0 : n.getSettings()) == null ? void 0 : u.frameRate, await o.publish(
|
|
16321
16326
|
[i, n],
|
|
16322
16327
|
[this._audioBitrate, this._videoBitrate],
|
|
16323
|
-
{
|
|
16328
|
+
{
|
|
16329
|
+
cfg: t.cfg,
|
|
16330
|
+
isReconnect: t.isReconnect,
|
|
16331
|
+
frameRate: h
|
|
16332
|
+
}
|
|
16324
16333
|
), t.isReconnect || (Ka.log("startPush begin"), this._connectionStartDate = Date.now());
|
|
16325
|
-
} catch (
|
|
16326
|
-
const
|
|
16334
|
+
} catch (h) {
|
|
16335
|
+
const g = new dr(
|
|
16327
16336
|
We.PUBLISH_FAILED,
|
|
16328
|
-
|
|
16329
|
-
|
|
16337
|
+
h.message,
|
|
16338
|
+
h
|
|
16330
16339
|
);
|
|
16331
|
-
if (Ka.groupEnd(), (
|
|
16332
|
-
throw this.unpublish({ isReconnecting: !0 }),
|
|
16340
|
+
if (Ka.groupEnd(), (f = this._reconnectStrategy) != null && f.isActive())
|
|
16341
|
+
throw this.unpublish({ isReconnecting: !0 }), g;
|
|
16333
16342
|
this._streamConsumeController.emit(
|
|
16334
16343
|
Ce.PushError,
|
|
16335
|
-
|
|
16344
|
+
g
|
|
16336
16345
|
), X(J.STOP_PUSH_STREAM, {
|
|
16337
16346
|
reason: Ir.PushError,
|
|
16338
|
-
error_message:
|
|
16347
|
+
error_message: g.message,
|
|
16339
16348
|
enable_reconnect: !1,
|
|
16340
16349
|
push_mode: this._pushMode,
|
|
16341
16350
|
session_id: this._pushSessionId,
|
|
@@ -16344,7 +16353,7 @@ class dS extends Su {
|
|
|
16344
16353
|
is_success: !1,
|
|
16345
16354
|
push_url: this._pushUrl,
|
|
16346
16355
|
reason: cr.PushError,
|
|
16347
|
-
error_message:
|
|
16356
|
+
error_message: g.message,
|
|
16348
16357
|
session_id: this._pushSessionId,
|
|
16349
16358
|
push_mode: this._pushMode
|
|
16350
16359
|
}), this.unpublish();
|