display webm video
android & web are very happy to send and display video as webm. ios can't display it howver.
My understanding is to do this you'd have to include something like https://wiki.videolan.org/VLCKit or https://github.com/brion/OGVKit. iOS doesn't support webm natively.
Any chance of one of these kits getting added any time soon?
oof, just hit this. unbelievable ios doesn't webm. :(
As a workaround until this is implemented:
- A friendly message should be displayed to the user that explains this
- A direct URL of the video needs to be provided (and/or a copy/paste button), so that the user could open the video in the VLC App
- Ideally a button could be shown that would open the video URL directly with the installed VLC App
Hi! I have the same problem on iPhone. I checked matrix-synapse server logs - there is no any errors, just HTTP 200 OK reply on "GET /_matrix/client/v1/media/download/..." request.
@pixlwave Do you plan to fix this issue?
@pixlwave The issue that has been present for six years still persists. Apple introduced support for the WEBM format three years ago, and it works in browsers. Could you kindly share if there are any plans to fix this? If not, please let us know so we can explore alternative solutions.
We do not, no:
- All of our efforts are focused on Element X iOS now, Element iOS is in maintenance mode and only receiving security fixes.
- The app supports playback through the system's
AVPlayerViewControllerand plays whatever formats Apple allows it to. I believe they added support for WebM to Safari, but not directly to AVFoundation I'm afraid.
@pixlwave Could you please address my idea above? https://github.com/element-hq/element-ios/issues/2106#issuecomment-998983499
As mentioned above, Element iOS is in maintenance mode. I just tested a WebM on Element X and the flow to play it back looks like this:
https://github.com/user-attachments/assets/b7c47273-b0e9-4f09-82d8-7b6129af8705
This seems acceptable to me as it has a consistent behaviour with any other file that the system can't preview and is easy enough to do what you would like with (inc saving to the Files app and handling from there).