mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Rewrite HLS segmentation algo AGAIN, add a bunch of HLS segmentation tests, add VideoEncoder/AudioEncoder timing refinement logic, fix HLS output spec violations
This commit is contained in:
@@ -791,6 +791,14 @@ export const joinPaths = (basePath: string, relativePath: string) => {
|
||||
return relativePath;
|
||||
}
|
||||
|
||||
// Strip query parameters from URL base paths so their contents don't mess up the join
|
||||
if (basePath.includes('://')) {
|
||||
const queryIndex = basePath.indexOf('?');
|
||||
if (queryIndex !== -1) {
|
||||
basePath = basePath.slice(0, queryIndex);
|
||||
}
|
||||
}
|
||||
|
||||
let result: string;
|
||||
|
||||
if (relativePath.startsWith('/')) {
|
||||
|
||||
Reference in New Issue
Block a user