ui icon indicating copy to clipboard operation
ui copied to clipboard

How to correctly pass video into HTML Component?

Open esomkin opened this issue 6 years ago • 2 comments

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?

esomkin avatar Jul 19 '18 07:07 esomkin

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.

helloagain-dev avatar Aug 17 '18 08:08 helloagain-dev

I think you just fork this project and fix it by yourself. It seems they didn't maintenance this project anymore.

andyngdz avatar Aug 25 '18 06:08 andyngdz