0

In a plotly dash app I would like to use the dash html.Video element.

One can use the src parameter in the html.Video object in order to set an url e.g. src=https://www.youtube.com/watch?v=aqz-KE-bpKQ(online) or src=.\static\big_bug_bunny.mp4(local).

When I use the dcc.Upload component, loading a video gives me a data uri string of the form data:audio/wav;base64,UklGRuR+JwNXQVZFZm10IBAAAAAB (A familiar question how to parse that in python can be found here)

I would like to set the children component of html.Video directly instead of using the src component.

In which form do I have to bring the data uri string in order to set the children?

Uwe.Schneider
  • 705
  • 1
  • 9
  • 20

0 Answers0