This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-13
Channels
- # announcements (1)
- # babashka (30)
- # beginners (43)
- # biff (24)
- # calva (72)
- # cider (12)
- # clj-commons (24)
- # clj-on-windows (10)
- # cljsrn (23)
- # clojure (123)
- # clojure-bay-area (6)
- # clojure-europe (43)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-uk (9)
- # clojurescript (125)
- # core-async (9)
- # cursive (2)
- # data-science (3)
- # datomic (30)
- # devops (1)
- # emacs (13)
- # events (5)
- # fulcro (15)
- # graalvm (3)
- # gratitude (1)
- # humbleui (11)
- # lsp (5)
- # nbb (24)
- # off-topic (11)
- # pedestal (5)
- # releases (1)
- # remote-jobs (1)
- # sci (15)
- # scittle (16)
- # shadow-cljs (15)
- # sql (11)
- # tools-deps (9)
- # xtdb (5)
Is there any way one could play video in HumbleUI (now, or in the future)? I assume such a thing would go through skija, or would I have to pipe in something like gstreamer?
I haven’t tried yet. There’s probably some way to marry Skia and whatever thing decodes video since Chrome and Android do it somehow. Certainly will have to look into it eventually
It's definitely possible. As far as I know, skia doesn't have builtin support for video. I hadn't seen gstreamer. It's neat and should work. I have an example of playing video using https://github.com/cnuernber/avclj with skija. It shouldn't be too hard to port to work with HumbleUI. It currently doesn't do audio, but it shouldn't be too hard. There might also be an existing solution with gstreamer or avclj for handling audio. https://github.com/phronmophobic/clj-media/blob/main/src/com/phronemophobic/clj_media/skija.clj
just fyi, even though all the code in clj-media is EPL, avclj is gplv2.
if you do get audio working, I would love to hear about it (pun intended)
I haven't needed audio yet, but I'll probably get around to implementing it at some point
Good question @U050UBKAA, and fantastic example @U7RJTCH6J! After looking into the hell that is video file formats I was almost ready to get a licence for http://www.radgametools.com/bnkmain.htm as it seems like the only sensible and high performance solution to what should not be this difficult of a problem. Not open source obviously, but who knows what might happen now that Epic acquired RAD.