Skip to content

Commit

Permalink
TransmuxingController: Remove segments field from export mediaInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
xqq committed Nov 7, 2016
1 parent 3fd708d commit b374afe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/transmuxing-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ class TransmuxingController {
}
this._emitter.emit(TransmuxingEvents.MEDIA_SEGMENT, type, mediaSegment);

// Resolve pending seekPoint
if (this._pendingResolveSeekPoint != null && type === 'video') {
let syncPoints = mediaSegment.info.syncPoints;
let seekpoint = this._pendingResolveSeekPoint;
Expand Down Expand Up @@ -383,6 +384,7 @@ class TransmuxingController {

exportInfo.duration = this._mediaInfo.duration;
exportInfo.segmentCount = this._mediaInfo.segmentCount;
delete exportInfo.segments;
delete exportInfo.keyframesIndex;

this._emitter.emit(TransmuxingEvents.MEDIA_INFO, exportInfo);
Expand Down

0 comments on commit b374afe

Please sign in to comment.