Join Slack
How to add a video to a webpage?
# compose-web
l
LeoColman
09/04/2021, 1:09 AM
How to add a video to a webpage?
b
Brian G
09/04/2021, 7:38 PM
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
l
LeoColman
09/04/2021, 10:09 PM
Can't find a way to adapt that to compose-web
LeoColman
09/04/2021, 10:09 PM
Could you give me a sample?
o
olonho
09/06/2021, 11:44 AM
https://github.com/JetBrains/compose-jb/blob/master/tutorials/Web/Building_UI/README.md#html-tags-in-compose-dom-dsl
👍 1
b
Brian G
09/06/2021, 6:52 PM
jb-compose has nearly a 1:1 mapping of composables to HTML elements, so you can follow any HTML guide (like the MDN one), but use composables instead of tags. In this case, you want the
Video
composable one or more
Source
composables
👍 1
l
LeoColman
09/06/2021, 11:26 PM
Thanks!
6
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by