mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(ci): upgrade deps (#1868)
This commit is contained in:
@@ -236,7 +236,7 @@ export function toVideoId(props: MuxVideoIdProps): string | undefined {
|
||||
}
|
||||
|
||||
export function toPlaybackIdFromSrc(src: string): string | undefined {
|
||||
if (!src || !src.startsWith('https://stream.')) return undefined;
|
||||
if (!src?.startsWith('https://stream.')) return undefined;
|
||||
const [playbackId] = new URL(src).pathname.slice(1).split(/\.m3u8|\//);
|
||||
return playbackId || undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user