Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

281 B
Raw Blame
export const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'

export function removeFragmentedMP4Ext (path: string) {
  return path.replace(/-fragmented\.mp4$/i, '')
}

export function removeVTTExt (path: string) {
  return path.replace(/\.vtt$/i, '')
}