更换文件名

This commit is contained in:
Harvey Zack committed 2018-12-18 16:58:07 +08:00
1 parent 3a50f7ea86
commit efb5f69dab
4 files changed
+12 -14

No files matched your search

@@ -1,4 +1,4 @@
export default class LoadFile {
export default class FlvParse {
constructor(flv) {
this.flv = flv;
this.uint8 = [];
@@ -41,7 +41,7 @@ export default class LoadFile {
tag.dataSize = this.read(3);
tag.Timestamp = this.read(4);
tag.StreamID = this.read(3);
tag.body = this.read(LoadFile.getBodySum(tag.dataSize));
tag.body = this.read(FlvParse.getBodySum(tag.dataSize));
this.tags.push(tag);
this.read(4);
}
@@ -2,7 +2,7 @@ import Emitter from 'tiny-emitter';
import checkSupport from './utils/checkSupport';
import EventProxy from './eventProxy';
import CreatMediaSource from './creatMediaSource';
import LoadFile from './loadFile';
import FlvParse from './flvParse';
import * as utils from './utils';
import config from './config';
@@ -34,8 +34,7 @@ class Flv extends Emitter {
load() {
this.events = new EventProxy(this);
this.mediaSource = new CreatMediaSource(this);
this.file = new LoadFile(this);
this.emit('load');
this.flvData = new FlvParse(this);
}
destroy() {