User wants to customize the website to have a video in the website.
Requirement
User can upload a video file and then apply it with the following HTML code to display the video on webpage.
Solution
- Navigate to Documents > Files > File Cabinet
- Click Web Site Hosting files
- Click Live Hosting Files
- Click Add File
- Browse a video file from a local directory
- On the preferred video file: Click Edit
- Take note of the generated URL
- Navigate to Commerce > Site Builder > Tabs
- On the preferred website tab: Click Edit
- Message:
- Click HTML icon to switch the text editor to Source Edit Mode
- Enter the sample code below:
<video width="320" height="240"><source src="[xxx]" type="video/mp4"></video>
Note: Replace the [xxx] with a URL of the video file from the File Cabinet. The width and height can be also customized as needed.
- Click Save
Note:Unlike YouTube videos wherein the Play button is available upon viewing the Solution, a video embedded from the File Cabinet can be played only if the user right-click on it and select the Play option.