mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 01:57:57 +00:00
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>
17 lines
402 B
TypeScript
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'
|