Open farooqkz opened 1 month ago
Also in Gallery, it gets classified as Video not Audio.
webm is a container format and surely can be audio-only, maybe even images, stickers (although there is webp) or whatnot
however, core does not inspect file contents - that would be too much effort for all these formats nowadays - but mainly relies on extension (maybe mime types) - and does a best guess, based on real-world usage.
in case of .webm, this is video. where do the audio-only files come from? maybe they have another extension? if that is a at-scale real-world problem, we can think over :)
The thing is that WebM has two mime types according to Wikipedia: audio/webm
and video/webm
. I really don't know if there is real world usage for Audio webm or not. I don't generally use this format so I don't know. But I happen to have a webm audio file downloaded from invidious.
if you rename your webm audios to .opus it works correctly.
Operating System (Linux/Mac/Windows/iOS/Android): Linux(Debian)
Delta Chat Version: 1.46.1 (git: v1.33.0-911-g2c356eb0-img-cropper-controls)
Expected behavior: The webm audio file should be shown with audio controls and without video
Actual behavior: The webm audio attachment is shown as video by showing a black scren
Steps to reproduce the problem: Simply send or receive a webm audio file
Screenshots:
Logs: