Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
yqjiang committed Sep 22, 2019
1 parent 2234f9c commit d888473
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/xgplayer-hls-live/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer-hls-live/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer-remux/src/mp4/fmp4.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class Fmp4 {
static mvex (duration, timescale, trackID) {
let buffer = new Buffer()
let mehd = Buffer.writeUint32(duration)
buffer.write(Fmp4.size(56), Fmp4.type('mvex'), Fmp4.size(16), Fmp4.type('mehd'), Fmp4.extension(0, 0), mehd, Fmp4.trex(trackID))
buffer.write(Fmp4.size(40), Fmp4.type('mvex'), Fmp4.trex(trackID))
return buffer.buffer
}
static trex (id) {
Expand Down
4 changes: 2 additions & 2 deletions packages/xgplayer-remux/src/mp4/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class Mp4Remuxer {

onMetaDataReady (type) {
let initSegment = new Buffer()
let ftyp = Fmp4.ftyp()
//let ftyp = Fmp4.ftyp()
let moov
let track

Expand All @@ -65,7 +65,7 @@ export default class Mp4Remuxer {

moov = Fmp4.moov({ type, meta: track.meta })

initSegment.write(ftyp, moov)
initSegment.write(moov)

let presourcebuffer = this._context.getInstance('PRE_SOURCE_BUFFER');
let source = presourcebuffer.getSource(type);
Expand Down

0 comments on commit d888473

Please sign in to comment.