I want to customize video tag
my video screen showing like this
But i want look like this
how can i do that.
Please help me anyone.
thanks
I want to customize video tag
my video screen showing like this
But i want look like this
how can i do that.
Please help me anyone.
thanks
hi,
you can set it with the ‘poster’ property:
this.videoTag = document.getElementById('mainVideoPlayer');
this.videoTag.setAttribute('poster',pathToYourImage);
best,
patrik
showing an error this.videoTag is null
after using poster my current output
actually i want to do like this
<video width="100%" controls="" poster="{{item._meta_gallery_images}}">
<source src="{{item._meta_gallery_images}}" type="video/mp4">
</video>
how can i do that?
you have to define videoTag:any in your class.
And for the white background: inspect your path for the image. maybe its wrong.
btw: you have the same source for poster and video?!