|
@@ -11,9 +11,9 @@ let USER_ID = "987412365",
|
|
COS_PREFIX = "error-bitstreams-auto-uploaded-from-application/",
|
|
COS_PREFIX = "error-bitstreams-auto-uploaded-from-application/",
|
|
FRAME_COMPOSE_LENGTH = 5;
|
|
FRAME_COMPOSE_LENGTH = 5;
|
|
|
|
|
|
-let testFrame = -1;
|
|
|
|
-let testBuffer = new Uint8Array(1024 * 1024 * 10);
|
|
|
|
-let testBufferLength = 0;
|
|
|
|
|
|
+// let testFrame = -1;
|
|
|
|
+// let testBuffer = new Uint8Array(1024 * 1024 * 10);
|
|
|
|
+// let testBufferLength = 0;
|
|
|
|
|
|
Number.prototype.padLeft = function (n, str) {
|
|
Number.prototype.padLeft = function (n, str) {
|
|
return Array(n - String(this).length + 1).join(str || "0") + this;
|
|
return Array(n - String(this).length + 1).join(str || "0") + this;
|
|
@@ -765,7 +765,7 @@ export default class Workers {
|
|
}
|
|
}
|
|
const _ = "wasm:" + d;
|
|
const _ = "wasm:" + d;
|
|
this._rtcp.sendStringData(_);
|
|
this._rtcp.sendStringData(_);
|
|
- console.log('meta——丢帧'+s.data.metadata);//.newUserStates[0].playerState.user.camera.yaw);
|
|
|
|
|
|
+ console.log("meta——丢帧" + s.data.metadata); //.newUserStates[0].playerState.user.camera.yaw);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 9: {
|
|
case 9: {
|
|
@@ -1069,7 +1069,7 @@ export default class Workers {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
let copyIDR = b;
|
|
let copyIDR = b;
|
|
- console.log("metaverse----IDR:"+copyIDR);
|
|
|
|
|
|
+ console.log("metaverse----IDR:" + copyIDR);
|
|
|
|
|
|
// debugger;
|
|
// debugger;
|
|
const down = Date.now();
|
|
const down = Date.now();
|
|
@@ -1315,9 +1315,17 @@ export default class Workers {
|
|
};
|
|
};
|
|
//有效Iframe
|
|
//有效Iframe
|
|
//console.error("IT", It);
|
|
//console.error("IT", It);
|
|
- console.log("Work-It1.data", It.data);
|
|
|
|
- console.log("Work-IT2", fCnt, It.metadata.mediaSrc+','+JSON.stringify(It.metadata.newUserStates[0].playerState.player.position));
|
|
|
|
- testFrame += 1;
|
|
|
|
|
|
+ console.log("Work-It1.data", fCnt, It.data);
|
|
|
|
+ console.log(
|
|
|
|
+ "Work-IT2",
|
|
|
|
+ fCnt,
|
|
|
|
+ It.metadata.mediaSrc +
|
|
|
|
+ "," +
|
|
|
|
+ JSON.stringify(
|
|
|
|
+ It.metadata.newUserStates[0].playerState.player.position
|
|
|
|
+ )
|
|
|
|
+ );
|
|
|
|
+ // testFrame += 1;
|
|
// console.error("IT", fCnt, JSON.stringify(Rt));
|
|
// console.error("IT", fCnt, JSON.stringify(Rt));
|
|
//console.error("traceIds", fCnt, Rt.traceIds.length);
|
|
//console.error("traceIds", fCnt, Rt.traceIds.length);
|
|
// console.log("IT-fCnt", It.data);
|
|
// console.log("IT-fCnt", It.data);
|