h2oai / h2oai/wave

Video component

Open
#2,173 1 comment 0 reactions 0 assignees View on GitHub
feature ui
Dominant language
Python
Stars
4.3k
Forks
371
Avg merge
26d 1h
Merged PRs (30d)
1

Description

#### Is your feature request related to a problem? Please describe

I would like to be able to embedded videos natively in Wave. Currently the only work around I've found is with HTML:

```python
def html_render_video(video_url: str, width: int, height: int):
html = f"""

"""
return html

card=ui.form_card(
box=ui.box('video'),
items=[
ui.frame(
content=html_render_video(
video_url="https://www.youtube.com/embed/5qap5aO4i9A",
width='1600',
height='900',
),
),
]
)
```

It is not optimal as I lose a lot of the perfs of Wave when I used this kind of code :(

#### Describe the solution you'd like

A native wave component to embedded videos from a URL.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.