Skip to content

Commit

Permalink
aacdemuxer: support several instances
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Apr 28, 2016
1 parent 329489f commit f7beda4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/demux/aacdemuxer.js
Expand Up @@ -7,10 +7,11 @@ import ID3 from '../demux/id3';

class AACDemuxer {

constructor(observer,remuxerClass) {
constructor(observer,id, remuxerClass) {
this.observer = observer;
this.id = id;
this.remuxerClass = remuxerClass;
this.remuxer = new this.remuxerClass(observer);
this.remuxer = new this.remuxerClass(observer,id);
this._aacTrack = {container : 'audio/adts', type: 'audio', id :-1, sequenceNumber: 0, samples : [], len : 0};
}

Expand Down

0 comments on commit f7beda4

Please sign in to comment.