You can embed the trailer on your external website. Once someone subscribes, they are seamlessly redirected to a Vimeo OTT hosted page to view the video content. The videos do not get embedded on your site. Learn more about selling your videos on your external site.
If you want to embed public videos onto your website (i.e. their Plans setting is set to "Anyone"), use the following template as your embed code:
<iframe src="https://embed.vhx.tv/videos/123456" width="640" height="360" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
Note the bolded "123456" in the code is a placeholder for the video ID, which you will replace with the ID of the video you want to embed.
To find the video ID, go to your admin and navigate to Content > Videos and select the video. Once you're in the video settings page, take note of the URL in the browser address bar; it will look like sitename.vhx.tv./admin/manage/videos/123456/general. The numbers in the URL are your Video ID.
If you have DRM-enabled videos, be sure to add the following snippet in order for your video to play back:
Example embed code for DRM videos:
<iframe src="https://embed.vhx.tv/videos/123456" width="640" height="360" frameborder="0" allow="encrypted-media" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
Alternatively, if you use our API, you can embed any video onto your site regardless of who has access to it by creating an authorization.