Skip to content

Commit

Permalink
Merge pull request #2557 from aescarcha/mssEndFragment
Browse files Browse the repository at this point in the history
MSS create datachunk now supports endFragment parameter
  • Loading branch information
epiclabsDASH committed Apr 26, 2018
2 parents 3050153 + f87bd66 commit db19fdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mss/MssHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function MssHandler(config) {
request.mediaInfo = streamProcessor.getMediaInfo();
request.representationId = representation.id;

const chunk = createDataChunk(request, streamProcessor.getStreamInfo().id);
const chunk = createDataChunk(request, streamProcessor.getStreamInfo().id, e.type !== events.FRAGMENT_LOADING_PROGRESS);

// Generate initialization segment (moov)
chunk.bytes = mssFragmentProcessor.generateMoov(representation);
Expand All @@ -96,7 +96,7 @@ function MssHandler(config) {
e.sender = null;
}

function createDataChunk(request, streamId) {
function createDataChunk(request, streamId, endFragment) {
const chunk = new DataChunk();

chunk.streamId = streamId;
Expand All @@ -108,6 +108,7 @@ function MssHandler(config) {
chunk.index = request.index;
chunk.quality = request.quality;
chunk.representationId = request.representationId;
chunk.endFragment = endFragment;

return chunk;
}
Expand Down

0 comments on commit db19fdc

Please sign in to comment.