add correct audio handling for matrix#195
Conversation
|
@Wohlstand any comments on this since you were the one who originally introduced this? |
|
oddly enough it wont lemme edit the pr comment so ill just drop what i meant to append here
|
|
Hello! I initially made an initial tweak because de-facto these files never arrived the destination at all, and I forced them to be a regular files as a compromise. It's better that file fails to delivery at all. |
|
Also something to add about #45:
The implementation of |
The files seem to arrive just fine for me, |
Could you resend these files just to here via GitHub? This server seems is dead, it doesn't response from any networks I have including a proxy at Nederland. |
On my end I used Element, Schildichat, Nheko, FluffyChat, and such files so just fail. Also, it was a serious issue when OGF Vorbis files that sent from Matrix to Discord as an audio file, to Discord attempted to send as a voice message and of course it hard fails. And the message comes without an attachment. And the same happens with any files are use non typical formats like tracker music, MIDI, chiptunes, and others. |
|
Ah, got it... So it would be fine now, of course? |
|
Actually I should verify how it will behave now de-facto. |
|
After throwing this directly at a musician-focused community and a tracker-focused community (testing in prod my beloved), I can confirm that this PR is highly functional with no errors or mishaps going on. |
|
Can you please try to fix those CI errors? Otherwise if there are no objections left, we can probably merge this. |
|
Ah, I thought those CI errors were normal... Will fix in a bit. |
|
Oddly enough, running EDIT: apparently |
|
Thanks, seems to pass now. I'll try to test it on my server this week. Maybe you could still squash the commits into a single one? @selfhoster1312 always complains when I merge PRs that haven't been squashed 😅 |
|
I would, but there's other's commits in the middle of my commits, and I'm uncertain as to how I would go about this... I'll just squash the last five for now. EDIT: figured it out. |
|
Looks like something went wrong with you pulling older already merged commits into this PR. |
|
Fixed it. Will actually squash commits later once I learn how... Clearly random guides around the internet are doing me no good. |
|
Why... |
|
I tested this with an .opus file and it seems to have worked as expected. (.mp3 files were working before and thus don't need this workaround?) |
from experience, didn't. will test again. |
|
I first tested with an .mp3 only to realize after that it isn't included in the file type list of this PR. Edit: ahh, wait. I only tested with Element web, and there the .mp3 file played fine. Edit2: or is .mp3 somehow recognized as an mpeg file? |
|
Audio format lesson time! |




ok
dirty hack for specific inclusion to fix #186 and compromise with #45
this was tested with the following filetypes going from discord to matrix: