-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use ocis images from same directory level (#48)
* feat: use images from same directory level * refactor: filter media files * refactor: revoke urls before unmounting * fix: parse blob url of used media files only * fix: rebuild src of local media files only * fix: fit image to a slide height * docs: add caching TODO comment * refactor: fix lint errors * refactor: fix lint errors * chore: add changelog item
- Loading branch information
Showing
3 changed files
with
153 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export const getMediaMimeTypes = (extensionMimeTypes: string[] = []) => { | ||
return [ | ||
'audio/flac', | ||
'audio/mpeg', | ||
'audio/ogg', | ||
'audio/wav', | ||
'audio/x-flac', | ||
'audio/x-wav', | ||
'image/gif', | ||
'image/jpeg', | ||
'image/png', | ||
'video/mp4', | ||
'video/webm', | ||
...extensionMimeTypes | ||
] | ||
} |