Skip to content

Commit

Permalink
Merge pull request #1 from numberwolf/master
Browse files Browse the repository at this point in the history
up
  • Loading branch information
girlbymirror authored Jul 1, 2022
2 parents da1f644 + 1047b61 commit 714c0ab
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/src/demuxer/m3u8base.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,17 @@ class M3u8BaseParserModule {
if (mediaFile[0] === '/') {
const httpHostSplit = this._preURI.split("//");
const hostSplit = httpHostSplit[httpHostSplit.length-1].split('/'); // remove http

this._preURI = httpHostSplit[0] + "//" + hostSplit[0];
// this._preURI = "";
// for (let httpHostSplitIdx = 0;
// httpHostSplitIdx < httpHostSplit.length;
// httpHostSplitIdx++)
// {
// this._preURI += httpHostSplit[httpHostSplitIdx];
// } // end for httpHostSplitIdx
// this._preURI += hostSplit[0];
/*
this._preURI = "";
for (let httpHostSplitIdx = 0;
httpHostSplitIdx < httpHostSplit.length;
httpHostSplitIdx++)
{
this._preURI += httpHostSplit[httpHostSplitIdx];
} // end for httpHostSplitIdx
this._preURI += hostSplit[0];
*/
}
mediaURI = this._preURI + mediaFile;
}
Expand Down

0 comments on commit 714c0ab

Please sign in to comment.