mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
更换文件名
This commit is contained in:
1 parent
3a50f7ea86
commit
efb5f69dab
4 files changed
+12
-14
No files matched your search
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user