Hello, there! I’m new to Compose[-web] and have e...
# compose-web
a
Hello, there! I’m new to Compose[-web] and have experience with Android prior to compose “era”. I’ve developed an app for watching VOD && LiveTV content and for that purpose I’ve been using “exoplayer” Now I want to add Compose-Web app Can you please advice / guide me / provide an URL to “how to”s which I can use and follow? What I want to achieve, if using exoplayer is not an option, to use <video width=“XXX” height=“YYY” controls> <source src=“...” type=“video/mp4”> </video> and be able to put/position it inside Box / Row / Column / “cobweb simple grid “and dynamically change its size Thank you very much!
d
If you want to use the DOM (i.e. "video"), sounds like you want Compose HTML here. Compose HTML does not come with Box, Row, or Column, but you can check out my library which provides them: https://github.com/varabyte/kobweb
You can check my landing page (still bare bones) and scroll down to see an embedded video there: https://kobweb.varabyte.com/
A fair bit of the code in there is Compose HTML (The H2 and Video elements), but Kobweb adds a bunch of conveniences on top (here, SpanText and Box elements, as well as a fork of Android's Modifier class, which you can search the code for and see a bunch of instances of it)
You mentioned "cobweb simple grid" so maybe you're already aware of Kobweb?
a
David, thank you very much for your directions! Will dive deeper in what you suggested! YES, I’m aware of Kobweb and I know that have to integrate html, but like I mentioned, Ido not have the knowledge for this. Once again thank you! Will come up with the result. Have a great day!!!
Dear David, Your “bit of a code” recommendation did a wonderful job - was able to see video stream where I want. Now just have to solve some web design issues. I think Kobweb, indeed, is a wonderful tool! Once again thank you for your time and answering to my question!!!
d
No problem, glad I could share some relevant code and that you were able to get it working!
👍 1