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

Mov file is not displayed in the media library #4663

Open
Raiden-GH opened this issue Feb 16, 2025 · 1 comment
Open

Mov file is not displayed in the media library #4663

Raiden-GH opened this issue Feb 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Raiden-GH
Copy link

Raiden-GH commented Feb 16, 2025

A mov file is not displayed in the media library. In the chat it appears as a file. If you click on it, the OS plays it.
It can be exported. If you import it back into a chat in the same profile afterwards, it is displayed normally both in the chat itself and in the media library.
This is very strange, as mov files usually work without any problems and the video in question also works if it is newly imported. The file cannot be corrupted either, as it displays correctly in DC-Android and DC-iOS if the profile was transferred from DC-Desktop.

macOS 15.3.1
DC-Desktop 1.54

Image

@Simon-Laux Simon-Laux added the bug Something isn't working label Feb 20, 2025
@Simon-Laux
Copy link
Member

Simon-Laux commented Feb 20, 2025

These are the code places that likely need to be changed.

const SUPPORTED_VIDEO_MIME_TYPES = Object.freeze([
'video/mp4',
'video/ogg',
'video/webm',
'video/quicktime',
])

export function isVideo(filemime: string | null) {
return SUPPORTED_VIDEO_MIME_TYPES.includes(filemime || '')
}

But note that this code is ancient, maybe meanwhile there is a much better way to handle this, like ty to load it and register an on error event listener on the <video> element. https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error_event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants