Published on October 15, 2025
Like the Image sitemap, video sitemap also is a file that contains information about the images on your site. They are used by google and other search engines to know how to crawl your site.
Below video sitemap can use for Github pages.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://www.yourdomain.com/page</loc>
<video:video>
<video:title>Your Video Title</video:title>
<video:description>A short description of your video.</video:description>
<video:thumbnail_loc>https://www.yourdomain.com/videos/thumbnail.jpg</video:thumbnail_loc>
<video:content_loc>https://www.yourdomain.com/videos/video.mp4</video:content_loc>
<video:player_loc>https://www.yourdomain.com/player?video=123</video:player_loc>
<video:duration>120</video:duration>
<video:publication_date>2025-01-15T12:00:00+00:00</video:publication_date>
</video:video>
</url>
</urlset>
Note: If your videos are hosted somewhere like YouTube, then replace the below with the above code.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://www.yourdomain.com/page</loc>
<video:video>
<video:title>Your YouTube Video Title</video:title>
<video:description>Your YouTube video description here.</video:description>
<video:thumbnail_loc>https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg</video:thumbnail_loc>
<video:player_loc>https://www.youtube.com/embed/VIDEO_ID</video:player_loc>
<video:content_loc>https://www.youtube.com/watch?v=VIDEO_ID</video:content_loc>
<video:duration>120</video:duration>
<video:publication_date>2025-01-15T12:00:00+00:00</video:publication_date>
</video:video>
</url>
</urlset>
Note: