Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for using video tag in a Kobweb site #334

Open
3 tasks
Micoder-dev opened this issue Oct 3, 2023 · 3 comments
Open
3 tasks

Add example for using video tag in a Kobweb site #334

Micoder-dev opened this issue Oct 3, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@Micoder-dev
Copy link

Need a proper doc for Video Tag which is used in HTML that plays all types of videos, here we have a Video attr but don't know how to implement


@Micoder-dev Micoder-dev added the documentation Improvements or additions to documentation label Oct 3, 2023
@bitspittle
Copy link
Collaborator

Thank you for filing this doc bug. I agree video is useful and can be documented.

For now, you can see me using it in action here: https://github.com/varabyte/kobweb-site/blob/2be6aaf838232240ace56d13290a691ec2a5194c/src/jsMain/kotlin/com/varabyte/kobweb/site/components/sections/home/CliSection.kt#L43

This is basically a case where you'll use raw Compose HTML. Hope the helps!

@bitspittle bitspittle added this to the 1.0 milestone Oct 3, 2023
@bitspittle bitspittle changed the title *Video Player* Add example for using video tag in a Kobweb site Oct 3, 2023
@Micoder-dev
Copy link
Author

Thank you for filing this doc bug. I agree video is useful and can be documented.

For now, you can see me using it in action here: https://github.com/varabyte/kobweb-site/blob/2be6aaf838232240ace56d13290a691ec2a5194c/src/jsMain/kotlin/com/varabyte/kobweb/site/components/sections/home/CliSection.kt#L43

This is basically a case where you'll use raw Compose HTML. Hope the helps!

We can play local videos with this code, but what if we have online URLs like HLS

@bitspittle
Copy link
Collaborator

I'm not sure exactly what you mean by the last part, but I'm pretty sure that solving and/or documenting that case is outside the scope of Kobweb.

Anytime I need to support a new feature, I search for how to do it in basic HTML / JS first. And from there it is usually straightforward to convert it to Kotlin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants