Add support for video mimetypes #35

Open
opened 2026-08-19 16:38:28 +02:00 by flaxeneel2 · 0 comments
Owner

Currently only images can be seen from within the app itself. Other types, such as videos, are currently not supported since slint does not have a builtin video player.

Proposed solution for this is we can make a per-target media engine so we can use the best possible media engine based on the device type.

This will need further research into the best approach but starting off I think it is a good idea to use the following per target:

Target Media Engine
iOS AVFoundation
MacOS AVFoundation
Android Exoplayer
Windows libmpv
Linux libmpv

(yes I have somehow found my way to shill mpv/libmpv here as well, fight me). We could look into MediaFoundation or GStreamer bindings for windows/linux respectively directly, but I think using libmpv would let us shortcut a lot of work.

Currently only images can be seen from within the app itself. Other types, such as videos, are currently not supported since slint does not have a builtin video player. Proposed solution for this is we can make a per-target media engine so we can use the best possible media engine based on the device type. This will need further research into the best approach but starting off I think it is a good idea to use the following per target: | Target | Media Engine | |---------|---------| | iOS | AVFoundation | | MacOS | AVFoundation | | Android | Exoplayer | | Windows | libmpv | | Linux | libmpv | (yes I have somehow found my way to shill mpv/libmpv here as well, fight me). We *could* look into MediaFoundation or GStreamer bindings for windows/linux respectively directly, but I think using libmpv would let us shortcut a lot of work.
flaxeneel2 changed title from Add support for other mimetypes to Add support for video mimetypes 2026-08-19 16:39:00 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
streigen/echelon#35
No description provided.