Fork me on GitHub
#humbleui
<
2022-10-13
>
motform13:10:34

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?

Niki17:10:17

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

phronmophobic17:10:27

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

🎉 3
Niki18:10:32

@U7RJTCH6J that’s a great example! I might use it to embed video in humble-deck!

metal 1
phronmophobic18:10:26

just fyi, even though all the code in clj-media is EPL, avclj is gplv2.

phronmophobic18:10:40

if you do get audio working, I would love to hear about it (pun intended)

Niki18:10:54

Thanks for the heads up!

Niki18:10:22

I don’t need audio for the talk, so it will probably come later

👍 1
phronmophobic18:10:15

I haven't needed audio yet, but I'll probably get around to implementing it at some point

Niki19:10:17

Why everything related to video is always so complicated?

motform06:10:18

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.