Skip to content

Commit

Permalink
more logging fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Dec 4, 2017
1 parent fa6fa06 commit 1e636dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/demux/mp4demuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ const UINT32_MAX = Math.pow(2, 32) - 1;

static parseSegmentIndex(initSegment) {

console.log('parsing SIDX:');

const moov = MP4Demuxer.findBox(initSegment, ['moov'])[0];
const moovEndOffset = moov ? moov.end : null; // we need this in case we need to chop of garbage of the end of current data

Expand Down
2 changes: 1 addition & 1 deletion src/loader/m3u8-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default class M3U8Parser {
// FIXME: replace string test by a regex that matches
// also `m4s` `m4a` `m4v` and other popular extensions
if(level.fragments.every((frag) => frag.relurl.endsWith('.mp4'))) {
console.warn('MP4 fragments found but no initSegment');
logger.warn('MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX');

frag = new Fragment();
frag.relurl = level.fragments[0].relurl;
Expand Down

0 comments on commit 1e636dc

Please sign in to comment.