|
@@ -1,4 +1,3 @@
|
|
|
-/* eslint-disable no-inner-declarations */
|
|
|
/* eslint-disable default-case */
|
|
|
/* eslint-disable no-restricted-globals */
|
|
|
|
|
@@ -276,35 +275,35 @@ if ('function' === typeof importScripts) {
|
|
|
this.writePtr +
|
|
|
', ReadPtr: ' +
|
|
|
this.readPtr +
|
|
|
- '\n' +
|
|
|
+ '\\n' +
|
|
|
', Producer Prev/Curr: ' +
|
|
|
this.prevSeq +
|
|
|
'/' +
|
|
|
pts +
|
|
|
- '\n' +
|
|
|
+ '\\n' +
|
|
|
', Consumer Prev/Curr: ' +
|
|
|
this.consumerPrevPts +
|
|
|
'/' +
|
|
|
this.consumerCurrPts +
|
|
|
- '\n' +
|
|
|
+ '\\n' +
|
|
|
'awaitingBuf: ' +
|
|
|
this.getNumOfPktToBeDec() +
|
|
|
', emptySlotNum: ' +
|
|
|
this.getNumOfEmptySlot() +
|
|
|
', skipFrameUntilI: ' +
|
|
|
this.skipFrameUntilI +
|
|
|
- '\n' +
|
|
|
+ '\\n' +
|
|
|
' framesReceivedBetweenTimerInterval: ' +
|
|
|
this.framesReceivedBetweenTimerInterval +
|
|
|
', maxFramesReceivedBetweenTimerInterval: ' +
|
|
|
this.maxFramesReceivedBetweenTimerInterval +
|
|
|
- '\n' +
|
|
|
+ '\\n' +
|
|
|
' label: ' +
|
|
|
label +
|
|
|
- '\n'
|
|
|
+ '\\n'
|
|
|
|
|
|
if (pts != -1) {
|
|
|
- logInfo += ' this.notEnoughSlots(' + pts + '): ' + this.notEnoughSlots(pts) + '\n'
|
|
|
+ logInfo += ' this.notEnoughSlots(' + pts + '): ' + this.notEnoughSlots(pts) + '\\n'
|
|
|
}
|
|
|
|
|
|
if (this.enable_logging) {
|
|
@@ -474,7 +473,7 @@ if ('function' === typeof importScripts) {
|
|
|
while (this.getNumOfPktToBeDec() > 0) {
|
|
|
index = this.readPtr
|
|
|
if (this.slotHasMedia(index)) {
|
|
|
- // dropMedia until IDR // 来不及解码丢帧
|
|
|
+ // dropMedia until IDR // \u6765\u4E0D\u53CA\u89E3\u7801\u4E22\u5E27
|
|
|
this.packetsDrop += 1
|
|
|
if (untilIDR) {
|
|
|
if (mediaArray[index].isIDR == true) {
|
|
@@ -625,14 +624,14 @@ if ('function' === typeof importScripts) {
|
|
|
t: MessageEvent.UpdateStats,
|
|
|
mediaBytesReceived: self.decoder.mediaBytesReceived,
|
|
|
metaBytesReceived: self.decoder.metaBytesReceived,
|
|
|
- packetsLost: self.decoder.packetsLost, // 网络丢帧
|
|
|
- packetsDrop: self.decoder.packetsDrop, // 来不及解码丢帧
|
|
|
+ packetsLost: self.decoder.packetsLost, // \u7F51\u7EDC\u4E22\u5E27
|
|
|
+ packetsDrop: self.decoder.packetsDrop, // \u6765\u4E0D\u53CA\u89E3\u7801\u4E22\u5E27
|
|
|
framesReceived: self.decoder.receivedMedia,
|
|
|
framesDecoded: self.decoder.receivedYUV,
|
|
|
framesRendered: self.decoder.receivedEmit,
|
|
|
framesReturned: framesReturned,
|
|
|
// framesAwait: leastReceivePts - lastProcessPts,
|
|
|
- framesAwait: self.decoder.getNumOfPktToBeDec(), // 等待解码的帧
|
|
|
+ framesAwait: self.decoder.getNumOfPktToBeDec(), // \u7B49\u5F85\u89E3\u7801\u7684\u5E27
|
|
|
decodeTimePerFrame: dtpf,
|
|
|
decodeTimeMaxFrame: dtmf,
|
|
|
sendOutBuffer: send_out_buffer,
|
|
@@ -1390,4 +1389,4 @@ if ('function' === typeof importScripts) {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|