Files
orca/src/shared/media-file-extensions.ts
T
25e0a29701 feat: stream desktop audio and video previews with native controls (#26120)
Open local and SSH video and music files with native playback controls. Stream bounded byte ranges through a scoped Electron URL instead of loading entire files into the editor.

Fixes #24859

Co-authored-by: ChangJun Park <40492343+ckdwns9121@users.noreply.github.com>
Co-authored-by: Lirone Levy <lirone88@outlook.fr>
Co-authored-by: dupi <david.li.du@gmail.com>
Co-authored-by: John Cusack <5961784+John-Cusack@users.noreply.github.com>
2026-10-07 01:29:55 -07:00

17 lines
402 B
TypeScript

export const MEDIA_FILE_MIME_TYPES: Record<string, string> = {
'.mp3': 'audio/mpeg',
'.wav': 'audio/wav',
'.m4a': 'audio/mp4',
'.aac': 'audio/aac',
'.ogg': 'audio/ogg',
'.oga': 'audio/ogg',
'.flac': 'audio/flac',
'.opus': 'audio/ogg',
'.mp4': 'video/mp4',
'.m4v': 'video/mp4',
'.mov': 'video/quicktime',
'.webm': 'video/webm'
}
export const MEDIA_PREVIEW_SCHEME = 'orca-media'