Skip to content

Commit

Permalink
Add id prop back to track in buffer controler
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdolby committed Jun 14, 2019
1 parent b773cd7 commit e89f791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/buffer-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ class BufferController extends EventHandler {
this.tracks[trackName] = {
buffer: sb,
codec: codec,
id: track.id,
container: track.container,
levelCodec: track.levelCodec
};
Expand Down
2 changes: 2 additions & 0 deletions src/types/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface AudioTrack {
buffer: SourceBuffer;
container: string;
codec: string;
id: string;
initSegment?: Uint8Array;
levelCodec: string;
}
Expand All @@ -15,6 +16,7 @@ export interface VideoTrack {
buffer: SourceBuffer;
container: string;
codec: string;
id: string;
initSegment?: Uint8Array;
levelCodec: string;
}

0 comments on commit e89f791

Please sign in to comment.