ui
ui copied to clipboard
How to correctly pass video into HTML Component?
Hi! I want to show video in HTML component, but when I pass a string
let body = '<video src="https://www.youtube.com/watch?v=vJJpnplTBeM" poster="https://img.youtube.com/vi/vJJpnplTBeM/maxresdefault.jpg"></video>';
to the component
return (<ScrollView>
<Html body={body} style={{}}/>
</ScrollView>);
it show an error No suitable image URL loader found for (null)
.
How to correctly pass video into HTML Component?
It doesn't work for me either.
I looked at the source code a bit and found that there seems to be a typo in html/elements/Video.js
:
- The property is called:
thumbnail_url
- The parameter is called:
thumbnailUrl
- The actual argument that is passes is called
thumbnailurl
Also, even if I fix this the image is not shown. I guess this is an error of the image component.
I think you just fork this project and fix it by yourself. It seems they didn't maintenance this project anymore.