Embed codes can be copied from video services like Youtube, Vimeo, Wistia, etc…
For example, on Youtube you can get the embed code by following these steps:
- On a computer, go to the YouTube video you want to embed.
- Under the video, click Share button.
- Click Embed.
- From the box that appears, copy the HTML embed code.
After that you can paste the embed code into the embed code field in the post settings or in the video element you’re using.
For Self-hosted videos
If you want to add a self-hosted .mp4 video (for example a video uploaded to your WordPress Media files) to pixfort Video Element, you can write the embed code as following:
<video controls poster="IMAGE_URL">
<source src="VIDEO_URL" type="video/mp4">
</video>
*And replace VIDEO_URL with the video URL and IMAGE_URL with the placeholder image URL.
**In case you don’t want a placeholder image, you can remove the attribute poster="IMAGE_URL", then the first frame of the video will be used instead..