|
@@ -48,14 +48,14 @@ export class VDecoder extends EventEmitter {
|
|
|
switch (message.type) {
|
|
|
case "pictureReady":
|
|
|
// onPictureReady(message);
|
|
|
- console.log(
|
|
|
- "[VDecoder]::decodeData",
|
|
|
- Object.assign(message, { clipId: this.decodingId })
|
|
|
- );
|
|
|
- this.emit(
|
|
|
- "decodeData",
|
|
|
- Object.assign(message, { clipId: this.decodingId })
|
|
|
- );
|
|
|
+ // console.log(
|
|
|
+ // "[VDecoder]::decodeData",
|
|
|
+ // Object.assign(message, { clipId: this.decodingId })
|
|
|
+ // );
|
|
|
+ // this.emit(
|
|
|
+ // "decodeData",
|
|
|
+ // Object.assign(message, { clipId: this.decodingId })
|
|
|
+ // );
|
|
|
|
|
|
if (this.decoding && this.decodingId) {
|
|
|
this.decodeNext(this.decodingId);
|
|
@@ -101,13 +101,13 @@ export class VDecoder extends EventEmitter {
|
|
|
this.emit("fetchDone", clip);
|
|
|
this.cacheBuffer = data.slice();
|
|
|
this.tempVideos.push(clip);
|
|
|
- console.log("[VDecoder]:获取clip,", clip);
|
|
|
+ // console.log("[VDecoder]:获取clip,", clip);
|
|
|
this.start = Date.now();
|
|
|
this.cacheBufferTotal = clip.data.length;
|
|
|
this.decodeNext(clip.id);
|
|
|
return Promise.resolve(clip);
|
|
|
} else {
|
|
|
- console.warn("[VDecoder]:fetch取帧为空", rangeFetch);
|
|
|
+ // console.warn("[VDecoder]:fetch取帧为空", rangeFetch);
|
|
|
}
|
|
|
})
|
|
|
.catch((error) => {
|
|
@@ -178,7 +178,7 @@ export class VDecoder extends EventEmitter {
|
|
|
this.emit("fetchDone", clip);
|
|
|
this.cacheBuffer = data.slice();
|
|
|
this.tempVideos.push(clip);
|
|
|
- console.log("[VDecoder]:获取clip,", clip);
|
|
|
+ // console.log("[VDecoder]:获取clip,", clip);
|
|
|
if (decode) {
|
|
|
this.start = Date.now();
|
|
|
this.cacheBufferTotal = clip.data.length;
|