-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fire trackinfo for audio only transmuxers #277
Conversation
@@ -197,9 +193,9 @@ var aacPipeline = function(options) { | |||
return; | |||
} | |||
|
|||
pipeline.tracks.audio = { | |||
pipeline.tracks.audio = pipeline.tracks.audio || { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this more like the non-partial transmuxer.
@@ -208,19 +204,13 @@ var aacPipeline = function(options) { | |||
// hook up the audio segment stream to the first track with aac data | |||
pipeline.audioSegmentStream = new AudioSegmentStream(pipeline.tracks.audio, options); | |||
|
|||
pipeline.audioSegmentStream.on('timingInfo', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were firing audioTimingInfo twice, woops
pipeline.trigger.bind(pipeline, 'audioTimingInfo')); | ||
|
||
// Set up the final part of the audio pipeline | ||
pipeline.adtsStream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the actual pipe below listener definitions just in case.
@@ -266,6 +264,7 @@ var Transmuxer = function(options) { | |||
hasFlushed = true; | |||
|
|||
Transmuxer.prototype.init.call(this); | |||
options.baseMediaDecodeTime = options.baseMediaDecodeTime || 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this baseMediaDecodeTime defaults to undefined, which is weird.
2e3cc96
to
8cec3df
Compare
8cec3df
to
7f7950d
Compare
7f7950d
to
9b917e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to test the changes now but code makes sense to me.
Right now we only fire
trackinfo
fortsPipelines
, but we should fire it foraacPipelines
as well.