@besovideo/webrtc-player 0.8.75 → 0.8.76
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/main.es.js +27 -19
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -111,7 +111,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
111
111
|
var define_processenv_default;
|
|
112
112
|
var init_define_processenv = __esm({
|
|
113
113
|
"<define:processenv>"() {
|
|
114
|
-
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.
|
|
114
|
+
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.76", PROJECT_NAMESPACE: "bvplayer" };
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -8796,27 +8796,35 @@ var WebRTCConnect = class {
|
|
|
8796
8796
|
})
|
|
8797
8797
|
} : void 0;
|
|
8798
8798
|
if (rvl == null ? void 0 : rvl.rtp.now) {
|
|
8799
|
+
let hasTrackStat = false;
|
|
8799
8800
|
report == null ? void 0 : report.forEach((item) => {
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
const track = item;
|
|
8803
|
-
if (track) {
|
|
8804
|
-
if (trackType == "video") {
|
|
8805
|
-
rvl.rtp.now.frameHeight = track == null ? void 0 : track.frameHeight;
|
|
8806
|
-
rvl.rtp.now.frameWidth = track == null ? void 0 : track.frameWidth;
|
|
8807
|
-
rvl.rtp.now.framesReceived = track == null ? void 0 : track.framesDecoded;
|
|
8808
|
-
} else {
|
|
8809
|
-
rvl.rtp.now.totalSamplesReceived = track.totalSamplesReceived;
|
|
8810
|
-
}
|
|
8811
|
-
rvl.rtp.now.totalSamplesDuration = videoEle.currentTime;
|
|
8812
|
-
rvl.rtp.now.totalInterFrameDelay = videoEle.currentTime;
|
|
8813
|
-
}
|
|
8814
|
-
}
|
|
8815
|
-
if (statsType == "transport") {
|
|
8816
|
-
const transport = item;
|
|
8817
|
-
rvl.rtp.now.bytesReceived = transport.bytesReceived;
|
|
8801
|
+
if (item.type == "track") {
|
|
8802
|
+
hasTrackStat = true;
|
|
8818
8803
|
}
|
|
8819
8804
|
});
|
|
8805
|
+
if (hasTrackStat) {
|
|
8806
|
+
report == null ? void 0 : report.forEach((item) => {
|
|
8807
|
+
const statsType = item.type;
|
|
8808
|
+
if (statsType == "track") {
|
|
8809
|
+
const track = item;
|
|
8810
|
+
if (track) {
|
|
8811
|
+
if (trackType == "video") {
|
|
8812
|
+
rvl.rtp.now.frameHeight = track == null ? void 0 : track.frameHeight;
|
|
8813
|
+
rvl.rtp.now.frameWidth = track == null ? void 0 : track.frameWidth;
|
|
8814
|
+
rvl.rtp.now.framesReceived = track == null ? void 0 : track.framesDecoded;
|
|
8815
|
+
} else {
|
|
8816
|
+
rvl.rtp.now.totalSamplesReceived = track.totalSamplesReceived;
|
|
8817
|
+
}
|
|
8818
|
+
rvl.rtp.now.totalSamplesDuration = videoEle.currentTime;
|
|
8819
|
+
rvl.rtp.now.totalInterFrameDelay = videoEle.currentTime;
|
|
8820
|
+
}
|
|
8821
|
+
}
|
|
8822
|
+
if (statsType == "transport") {
|
|
8823
|
+
const transport = item;
|
|
8824
|
+
rvl.rtp.now.bytesReceived = transport.bytesReceived;
|
|
8825
|
+
}
|
|
8826
|
+
});
|
|
8827
|
+
}
|
|
8820
8828
|
}
|
|
8821
8829
|
return rvl;
|
|
8822
8830
|
});
|