The video widget allows content editors to insert an embedded video from Youtube or Vimeo into their website. The URL of the video can be specified in the widget's Video URL
property.
- Video URL - the URL of a Youtube video or a Vimeo video to be displayed on the live site.
Prerequisite: You need to have NodeJS runtime installed to be able to use this widget.
- Clone this repository to your file system.
git clone https://github.com/Kentico/ems-mvc-components.git
- Open the
Kentico.Components.sln
solution in Visual Studio and build the solution. - Open PowerShell and navigate to the root of the repository.
- In the PowerShell, run the
npm install
command and then thenpm run build
command. - Copy
Kentico.Widget.Video.dll
andKentico.Widget.Video.Views.dll
files from the/SandboxSite/bin
folder from this repository to thebin
folder of your MVC project. - Copy contents of the
Kentico.Widget.Video/App_Data
folder from this repository to theApp_Data
folder of your MVC project.- This step ensures that resource strings required by the component are available in your project.
- Copy contents of the
Kentico.Widget.Video/Content
folder from this repository to theContent
folder of your MVC project.- This step ensures that scripts and stylesheets required by the component are available in your project.
After rebuilding your solution, you can place the video widget into your pages when using the page builder. You may need to adjust the limitations of editable areas to be able to insert the widget into an editable area.