Comparing version 5.2.0-2 to 5.2.0-3
@@ -24,4 +24,4 @@ /** | ||
var isLikelyAacData = require('../aac/utils').isLikelyAacData; | ||
var ONE_SECOND_IN_TS = require('../utils/clock').ONE_SECOND_IN_TS; | ||
var ONE_SECOND_IN_TS = 90000; // 90kHz clock | ||
@@ -713,10 +713,17 @@ // constants | ||
this.pendingTracks.push(output.track); | ||
this.pendingBoxes.push(output.boxes); | ||
this.pendingBytes += output.boxes.byteLength; | ||
// TODO: is there an issue for this against chrome? | ||
// We unshift audio and push video because | ||
// as of Chrome 75 when switching from | ||
// one init segment to another if the video | ||
// mdat does not appear after the audio mdat | ||
// only audio will play for the duration of our transmux. | ||
if (output.track.type === 'video') { | ||
this.videoTrack = output.track; | ||
this.pendingBoxes.push(output.boxes); | ||
} | ||
if (output.track.type === 'audio') { | ||
this.audioTrack = output.track; | ||
this.pendingBoxes.unshift(output.boxes); | ||
} | ||
@@ -872,2 +879,6 @@ }; | ||
}; | ||
CoalesceStream.prototype.setRemux = function(val) { | ||
this.remuxTracks = val; | ||
}; | ||
/** | ||
@@ -1131,2 +1142,12 @@ * A Stream that expects MP2T binary data as input and produces | ||
this.setRemux = function(val) { | ||
var pipeline = this.transmuxPipeline_; | ||
options.remux = val; | ||
if (pipeline && pipeline.coalesceStream) { | ||
pipeline.coalesceStream.setRemux(val); | ||
} | ||
}; | ||
this.alignGopsWith = function(gopsToAlignWith) { | ||
@@ -1133,0 +1154,0 @@ if (videoTrack && this.transmuxPipeline_.videoSegmentStream) { |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var trackInfo = require('../mp4/track-decode-info.js'); | ||
var ONE_SECOND_IN_TS = require('../utils/clock').ONE_SECOND_IN_TS; | ||
@@ -18,4 +19,2 @@ // constants | ||
var ONE_SECOND_IN_TS = 90000; // 90kHz clock | ||
/** | ||
@@ -22,0 +21,0 @@ * Constructs a single-track, ISO BMFF media segment from AAC data |
@@ -354,2 +354,11 @@ var Stream = require('../utils/stream.js'); | ||
this.setRemux = function(val) { | ||
options.remux = val; | ||
if (pipeline && pipeline.coalesceStream) { | ||
pipeline.coalesceStream.setRemux(val); | ||
} | ||
}; | ||
this.setAudioAppendStart = function(audioAppendStart) { | ||
@@ -356,0 +365,0 @@ if (!pipeline || !pipeline.tracks.audio || !pipeline.audioSegmentStream) { |
{ | ||
"name": "mux.js", | ||
"version": "5.2.0-2", | ||
"version": "5.2.0-3", | ||
"description": "A collection of lightweight utilities for inspecting and manipulating video container formats.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1208014
29026