<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    VIDEO SITEMAP TEMPLATE FOR TOWERB
    
    This template shows the XML structure for Google Video Sitemap.
    Use this for each video page you want to index.
    
    INSTRUCTIONS:
    1. Replace {video-id} with your actual video ID
    2. Replace {creator-username} with the uploader's username
    3. Update all thumbnail_loc URLs
    4. Set correct duration in seconds
    5. Change publication_date to when video was uploaded
    6. Add expiration_date if video is temporary
    7. Update view_count and rating dynamically
    8. Set content_loc to video stream URL or remove if not available
-->

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
    
    <url>
        <loc>https://towervsp.com/video/{video-id}</loc>
        <lastmod>2025-01-15T12:00:00+00:00</lastmod>
        <changefreq>weekly</changefreq>
        
        <!-- Video Information -->
        <video:video>
            <!-- REQUIRED: Thumbnail image of the video -->
            <video:thumbnail_loc>https://towervsp.com/thumbs/{video-id}.jpg</video:thumbnail_loc>
            
            <!-- REQUIRED: Title of the video (max 100 chars) -->
            <video:title>Amazing Video Title Here</video:title>
            
            <!-- REQUIRED: Description of the video (max 2048 chars) -->
            <video:description>Full description of the video. This should be informative and include keywords to help with SEO visibility on Google.</video:description>
            
            <!-- OPTIONAL: Direct link to video file or stream -->
            <video:content_loc>https://towervsp.com/video/{video-id}/stream</video:content_loc>
            
            <!-- OPTIONAL: Duration in seconds -->
            <video:duration>300</video:duration>
            
            <!-- OPTIONAL: Date after which video is no longer available -->
            <video:expiration_date>2025-12-31T23:59:59+00:00</video:expiration_date>
            
            <!-- OPTIONAL: Rating from 1-5 -->
            <video:rating>4.5</video:rating>
            
            <!-- OPTIONAL: View/play count -->
            <video:view_count>1500</video:view_count>
            
            <!-- REQUIRED: Publication date (ISO 8601) -->
            <video:publication_date>2025-01-15T12:00:00+00:00</video:publication_date>
            
            <!-- OPTIONAL: Whether video contains restricted content -->
            <video:family_safe>true</video:family_safe>
            
            <!-- OPTIONAL: Tags/keywords for video -->
            <video:tag>video platform</video:tag>
            <video:tag>sharing</video:tag>
            <video:tag>creators</video:tag>
            
            <!-- OPTIONAL: Category/genre with required attribute -->
            <video:category>Entertainment</video:category>
        </video:video>
    </url>
    
    <!-- ADDITIONAL VIDEO EXAMPLES -->
    
    <!-- Example 2: Tutorial Video -->
    <url>
        <loc>https://towervsp.com/video/tutorial-001</loc>
        <lastmod>2025-01-14T08:30:00+00:00</lastmod>
        <video:video>
            <video:thumbnail_loc>https://towervsp.com/thumbs/tutorial-001.jpg</video:thumbnail_loc>
            <video:title>How to Create Amazing Content on TowerB</video:title>
            <video:description>Learn the best practices for creating engaging video content. This tutorial covers filming, editing, and optimization techniques.</video:description>
            <video:content_loc>https://towervsp.com/video/tutorial-001/stream</video:content_loc>
            <video:duration>1200</video:duration>
            <video:rating>4.8</video:rating>
            <video:view_count>5200</video:view_count>
            <video:publication_date>2025-01-10T10:00:00+00:00</video:publication_date>
            <video:family_safe>true</video:family_safe>
            <video:tag>tutorial</video:tag>
            <video:tag>content creation</video:tag>
            <video:tag>filmmaking</video:tag>
            <video:category>Education</video:category>
        </video:video>
    </url>
    
    <!-- Example 3: Music Video -->
    <url>
        <loc>https://towervsp.com/video/music-001</loc>
        <lastmod>2025-01-13T14:20:00+00:00</lastmod>
        <video:video>
            <video:thumbnail_loc>https://towervsp.com/thumbs/music-001.jpg</video:thumbnail_loc>
            <video:title>Original Music Video - "Digital Dreams"</video:title>
            <video:description>Brand new original music video featuring independent artist. High-quality production with stunning visuals.</video:description>
            <video:content_loc>https://towervsp.com/video/music-001/stream</video:content_loc>
            <video:duration>240</video:duration>
            <video:rating>4.7</video:rating>
            <video:view_count>3400</video:view_count>
            <video:publication_date>2025-01-12T00:00:00+00:00</video:publication_date>
            <video:family_safe>true</video:family_safe>
            <video:tag>music</video:tag>
            <video:tag>original</video:tag>
            <video:tag>indie</video:tag>
            <video:category>Music</video:category>
        </video:video>
    </url>
    
</urlset>

<!-- 
    DEPLOYMENT INSTRUCTIONS:
    
    1. Generate video sitemaps dynamically from your Firebase database
    2. For each new video upload, add an entry to the sitemap
    3. Update videos that have new views/ratings weekly
    4. Submit sitemap to Google Search Console
    5. Reference in robots.txt: Sitemap: https://towervsp.com/video-sitemap.xml
    
    OPTIMIZATION TIPS:
    - Use consistent, high-quality thumbnails
    - Write compelling titles (include keywords)
    - Descriptions should be detailed (200-500 chars)
    - Update publication_date accurately
    - Keep view_count and rating current
    - Use meaningful tags
    - Mark age-appropriate videos with family_safe
-->
