Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with preview of .opus files #450

Open
AugustoPapagno opened this issue Jan 26, 2025 · 0 comments
Open

Conflict with preview of .opus files #450

AugustoPapagno opened this issue Jan 26, 2025 · 0 comments

Comments

@AugustoPapagno
Copy link

Hi if the plugin is disabled, it is possible to properly preview the audio player within an .md note (ie. ![[audiofile.opus]])
Once it is enabled, there is just a blank space, both in Reading and Edit mode.
Even accessing the .opus file from the file browser in Obsidian, nothing can be seen (Default Theme)

With .mp3 files works fine.

I'm not seeing if opened as an issue, but I do see that .opus, apparently should be supported:

apps/app/src/info/media-type.ts

const mediaFileExtensions = {
  video: ["mp4", "webm", "ogv", "mov", "mkv"] as const,
  audio: ["mp3", "wav", "m4a", "3gp", "flac", "ogg", "oga", "opus"] as const,
} satisfies Record<MediaType, readonly string[]>;

export const getMediaExts = (type: MediaType) => [...mediaFileExtensions[type]];

Hope it helps

Augusto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant