Custom widget development, how to render a video to html

[ad_1]

I am new to creating custom widgets, I want to create widget that beside other functionalities has an option to upload a video from Elementor editor and display that to a page.

I have created a control:

`$this->add_control(‘video’, [`
`’label’ => esc_html__(‘Video’,’elementor-addon’),`
`’type’ => \Elementor\Controls_Manager::MEDIA,`
`’default’ => [`
`’url’ => \Elementor\Utils::get_placeholder_image_src(),`
`]`
`]);`

But I don’t know how to display this video on a page using HTML. Thanks in advance!

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer