Skip to content

Commit

Permalink
Update m3u8base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
girlbymirror authored Jul 1, 2022
1 parent 1f3abf4 commit 34acd07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/src/demuxer/m3u8base.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ 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;
Expand All @@ -279,6 +281,7 @@ class M3u8BaseParserModule {
this._preURI += httpHostSplit[httpHostSplitIdx];
} // end for httpHostSplitIdx
this._preURI += hostSplit[0];
*/
}
mediaURI = this._preURI + mediaFile;
}
Expand Down

0 comments on commit 34acd07

Please sign in to comment.