Video Hosting
Video hosting offers enterprise-grade video hosting. It allows you to embed your generated videos directly into your website through our JavaScript SDK. It ensures that your users enjoy a fast, responsive, and high-quality video streaming experience.
How it works
When you render a video you can pass the embed
parameter to enable video hosting.
Our system works with a global network of CDN partners to ensure the fastest load times possible. The videos you host are automatically transcoded into multiple formats for maximum compatibility with all devices, from desktops to mobile devices across different operating systems.
How video helps SEO
Video is a powerful tool to boost your SEO performance. Videos can lead to higher click-through rates, increased time spent on your site, and improved search engine rankings. Learn more about the benefits of video SEO.
If search engines classify your video as primary content, a video thumbnail will be displayed in the search results. This will increase your click-through rate and improve your SEO.
Videos also increase the time users spend on your website. Video is more engaging than text and users are more likely to watch a video than read a long article. This will reduce your bounce rate, increase your dwell time, and improve your SEO.
Video content is served on the main SERP page as well as the image and video search results. This means you can rank multiple times for the same keyword.
Search engines wont always display a video thumbnail in the search results. They will only display a video thumbnail if it is relevant to the users search query.
Video player SDK
The JavaScript SDK is designed to be easily embedded on your website. Simply place the script where you want the video to appear, and it will dynamically load with the rest of your content. For Auto Embed, the data-eid is not required.
<script src="https://ENDPOINT/embed/embed.js" id="vai_video_embed" data-eid="<embed_id>" defer></script>
SEO
The video player is SEO-friendly, designed to load video content in the background, ensuring a smooth and fast user experience. It follows the Google Video SEO best practices to ensure your videos are indexed by search engines correctly.
To help search engines classify your video as primary content you should embed the video near the top of your article. Preferably above the fold.
Schema.org
Schema.org markup is helpful for search engines to understand your video. The player will automatically generate and insert the markup for you. Here is an example of the markup:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "VideoObject",
"contentUrl": "...",
"thumbnailUrl": "...",
"name": "...", // Video title
"description": "...", // Automatically generated SEO optimized video description
"uploadDate": "...",
"duration": "...",
"hasPart": [...],
}
</script>
Video Sitemap
To help search engines find your videos, it's recommended you add a video sitemap. A video sitemap is automatically generated for you but you need to link it to your website. Your sitemap must be hosted on the same domain as your website. To enable video sitemaps, create a reverse proxy for https://<your-domain>/video-sitemap.xml
and point it at https://api.ENDPOINT>/v1/sitemap/<your-domain>
.
Configuration
You can configure the SDK by setting window.vai_video_embed_settings = {...}
before the script tag. The following options are available:
<script>
window.vai_video_embed_settings = {
max_height: 500, // Maximum height of the video player, pass null to disable
max_width: 500, // Maximum width of the video player, pass null to disable
autoplay: true, // Autoplay the video
ima: { // Interactive Media Ads SDK, see https://github.com/googleads/videojs-ima#additional-settings and https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/tags
adTagUrl: 'https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_preroll_skippable&sz=640x480&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=',
}
}
</script>
<script src="https://ENDPOINT/embed/embed.js" id="vai_video_embed" data-eid="<embed_id>" defer></script>
Styling
The video player is responsive and will automatically adjust to the size of the container. You can set a maximum width and height by setting the max_width
and max_height
options.
Analytics
The SDK will automatically send analytics events to the app to track video views and engagement.
Advertisements
You can monetize your videos by enabling advertisements. You can configure the player to use Google IMA by setting the ima
option. The adTagUrl
supports all VAST ad tags.
To get started with Google IMA, you need to register for Ad Manager. You can configure your ads in the Ad Manager dashboard.