Skip to content

Commit

Permalink
fix: fixed segment timeline parsing when duration is present (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesjo authored Oct 11, 2018
1 parent 611cdda commit 90feb2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions src/inheritAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ export const toRepresentations =
*/
export const toAdaptationSets = (mpdAttributes, mpdBaseUrls) => (period, periodIndex) => {
const periodBaseUrls = buildBaseUrls(mpdBaseUrls, findChildren(period, 'BaseURL'));
const periodAtt = parseAttributes(period);
const periodAttributes = merge(mpdAttributes, periodAtt, { periodIndex });
const periodAttributes = merge(mpdAttributes, { periodIndex });
const adaptationSets = findChildren(period, 'AdaptationSet');
const periodSegmentInfo = getSegmentInformation(period);

Expand Down
6 changes: 0 additions & 6 deletions test/inheritAttributes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@ QUnit.test(' End to End test for checking support of segments in period ',
attributes: {
bandwidth: 5000000,
baseUrl: 'https://www.example.com/base/',
duration: 280.414,
codecs: 'avc1.64001e',
height: 404,
id: 'test',
Expand Down Expand Up @@ -640,7 +639,6 @@ QUnit.test(' End to End test for checking support of segments in period ',
attributes: {
baseUrl: 'https://www.example.com/base/',
mediaPresentationDuration: 30,
duration: 280.414,
mimeType: 'video/mp4',
periodIndex: 0,
height: 545,
Expand All @@ -664,7 +662,6 @@ QUnit.test(' End to End test for checking support of segments in period ',
attributes: {
bandwidth: 256,
baseUrl: 'https://example.com/en.vtt',
duration: 280.414,
id: 'en',
lang: 'en',
mediaPresentationDuration: 30,
Expand Down Expand Up @@ -729,7 +726,6 @@ QUnit.test(' End to End test for checking support of Segments in Adaptation set'
attributes: {
bandwidth: 5000000,
baseUrl: 'https://www.example.com/base/',
duration: 280.414,
codecs: 'avc1.64001e',
height: 404,
id: 'test',
Expand Down Expand Up @@ -758,7 +754,6 @@ QUnit.test(' End to End test for checking support of Segments in Adaptation set'
attributes: {
baseUrl: 'https://www.example.com/base/',
mediaPresentationDuration: 30,
duration: 280.414,
mimeType: 'video/mp4',
periodIndex: 0,
height: 545,
Expand All @@ -782,7 +777,6 @@ QUnit.test(' End to End test for checking support of Segments in Adaptation set'
attributes: {
bandwidth: 256,
baseUrl: 'https://example.com/en.vtt',
duration: 280.414,
id: 'en',
lang: 'en',
mediaPresentationDuration: 30,
Expand Down

0 comments on commit 90feb2d

Please sign in to comment.