Video Admin Details
Overview
The Video Admin Details page is a comprehensive modal-based interface for viewing and editing all aspects of a single video. It provides administrators with a complete view of video metadata, technical specifications, engagement statistics, media assets, storage locations, and more - all in a single, organized interface.
This page is typically accessed as a modal overlay from the main Video Admin listing page (Admin Panel → Content → Videos) by clicking on a video's detail icon or preview.
[Screenshot: video-admin-details-full-modal-view]
Key Capabilities
- Inline Editing - Edit video title, description, and metadata fields directly with auto-save
- Video Playback - Built-in Video.js player with HLS streaming support, sprite thumbnails, and debug console
- Technical Analysis - View codec information, resolution, bitrate, duration, and file sizes
- Engagement Metrics - Track views, likes, dislikes, comments, ratings, impressions, clicks, and CTR
- Analytics Dashboard - Performance trends with sparkline charts and category comparisons
- Media Asset Management - Preview poster, thumbnails, animated GIF, contact sheet, and preview video
- Chapter Management - Add, edit, and delete video chapters/markers with timestamp syncing
- Category/Tag/Model Assignment - Manage video associations with intuitive tag-style UI
- Storage Server Migration - Move video files between CDN/storage servers
- SEO Configuration - Full meta tags, Open Graph, and Twitter Card settings
- Report Management - View and process user reports (copyright, broken video, etc.)
- Customizable Layout - Drag-and-drop section ordering with visibility toggles
System Requirements
This page requires the following system dependencies to function properly.
PHP Requirements
Required PHP Extensions
Required PHP Functions
External Dependencies
Database Requirements
- MySQL/MariaDB 5.7+ or 8.0+
- InnoDB engine (for transaction support)
- utf8mb4 character set
Folder Permissions
Features & UI Elements
Modal Header
[Screenshot: video-admin-details-header]
The modal header displays:
- Video ID Badge - Shows the numeric videoid in a green badge
- Editable Title - Click to edit the video title inline (contenteditable)
- Close Button - X button to close the modal
Card Visibility & Order Panel
[Screenshot: video-admin-details-visibility-panel]
A green gradient panel at the top provides control over which sections are visible and their display order:
Video Player Section
[Screenshot: video-admin-details-player]
A fully-featured Video.js player with:
Debug Stats Panel
Shows real-time playback information:
- Current Source - HLS or MP4
- HLS Quality - Current bitrate/resolution
- Player State - Playing, Paused, etc.
- Buffered - Buffer percentage
- Errors - Error count
Player Features
- HLS adaptive streaming support
- MP4 fallback
- Poster image display
- Sprite thumbnail scrubbing
- Keyboard hotkeys (space, arrows, etc.)
- Quality selector (for HLS)
- Debug console toggle
Playlist Sidebar
Optional sidebar showing related videos (if enabled in player features).
Basic Information Section
[Screenshot: video-admin-details-basic-info]
Technical Details Section
[Screenshot: video-admin-details-technical]
Engagement Statistics Section
[Screenshot: video-admin-details-engagement]
A grid of stat cards showing:
Analytics & Performance Section
[Screenshot: video-admin-details-analytics]
Collapsible section with tabs:
Performance Tab
- Watch Time & Engagement - Average watch time, completion rate, bounce rate
- Views Trend - 30-day sparkline chart with totals
- Activity & Resources - Last viewed time, bandwidth used
Processing Tab
- Processing status indicator (pending, processing, active, error)
- Timeline showing start/complete times
- Processing duration
- Import mode used
Playlists Tab
- List of playlists containing this video
- Position in each playlist
Status Badges
- Trending badge (if score > 70)
- Optimized badge (if SEO optimized)
- Flagged badge (if reports exist)
- Processing badge (if currently processing)
Thumbnails Section
[Screenshot: video-admin-details-thumbnails]
Gallery grid of all video thumbnails with:
- Primary indicator - Animated green/red border on main thumbnail
- Set Main button (M) - Make this the poster image
- Delete button (D) - Remove thumbnail from CDN
- Sequence number - Display order
- Timestamp - When in video the thumbnail was captured
- Lightbox - Click to view full size
Video Chapters & Markers Section
[Screenshot: video-admin-details-chapters]
Chapter management with video sync:
Playback Info Panel
- Current video time display (updates live)
- Video duration display
- "Add Chapter Here" button - captures current timestamp
Chapter Controls
- Add Chapter Manually - Opens form without timestamp
- Refresh - Reload chapter list from database
Chapter Grid
Each chapter card shows:
- Chapter number
- Clickable timestamp (jumps to position)
- Title
- Description (if set)
- Edit button
- Delete button
Chapter Form
When adding/editing:
- Timestamp display with formatted time
- "Update from Player" - Sync current position
- "Preview" - Jump player to entered time
- Title field (required)
- Description field (optional)
- Timestamp in seconds (required)
- Display order (optional override)
- Save/Cancel buttons
Media Assets Section
[Screenshot: video-admin-details-media-assets]
Grid of additional media files:
Additional Metadata Section
Schedule Section
Sponsors & Monetization Section
SEO & Social Media Section
[Screenshot: video-admin-details-seo]
Production Details Section
Content Flags & Optimization Section
User Reports Section
[Screenshot: video-admin-details-reports]
Shows all user reports for this video with:
- Report count badge in header
- Report reason (copyright, broken video, etc.)
- Status badge (pending, reviewed, resolved, dismissed)
- Report date/time
- Reporter username (if logged in)
- IP address
- Details text
- Admin notes (if added)
- Action buttons: Mark Reviewed, Resolve, Dismiss
Admin Notes Section
Large textarea for internal administrative notes. Auto-saves on blur.
Categories, Tags, and Models Section
Three-column layout for associations:
Categories Card
- Display of assigned categories as badges
- Click X to remove
- Dropdown selector to add (max 10)
- Add button
Tags Card
- Display of assigned tags as badges
- Click X to remove
- Text input with Enter to add
- Suggestions button for popular tags
- Add button
Models Card
- Display of assigned models as badges
- Click X to remove
- Search input with autocomplete
- Results dropdown with "Create new" option
Storage Server Location Section
[Screenshot: video-admin-details-storage]
Shows current storage information:
- Current server name and type
- Server group
- Health status indicator
- Total file count
Migration Controls
- Destination server dropdown (grouped by server group)
- Health status icons in dropdown
- "Migrate All Files" button
- Confirmation dialog before migration
File Paths Section
Lists all CDN/storage URLs for the video:
- Main Video (Web MP4)
- Poster Image
- Preview Video
- Animated GIF
- Contact Sheet
- HLS Master Playlist
- Sprite Image
- Sprite VTT
All paths are clickable links that open in new tabs.
Modal Footer
[Screenshot: video-admin-details-footer]
Step-by-Step Usage
Viewing Video Details
- Navigate to Admin Panel → Content → Videos
- Find the video you want to view
- Click the video thumbnail, title, or detail icon
- The Video Admin Details modal opens
Editing Basic Information
- Click on any field with a dashed border (editable fields)
- Make your changes
- Click outside the field or press Tab
- Changes auto-save immediately
- Console shows "Field 'fieldname' auto-saved successfully"
Managing Thumbnails
Set Main Thumbnail
- Scroll to Thumbnails section
- Find the desired thumbnail
- Click the green "M" badge
- Confirm the action
- The thumbnail gets the animated border indicating it's primary
Delete Thumbnail
- Click the red "D" badge on the thumbnail
- Confirm deletion
- Thumbnail is removed from CDN and database
Adding Video Chapters
Add at Current Time
- Play the video to the desired timestamp
- Click "Add Chapter Here" in the chapters section
- Enter a title and optional description
- Click "Save Chapter"
Add Manually
- Click "Add Chapter Manually"
- Enter timestamp in seconds
- Click "Preview" to verify position
- Enter title and description
- Click "Save Chapter"
Managing Categories/Tags/Models
Add Category
- Select category from dropdown
- Click "+ Add"
- Category badge appears
Remove Category
- Click X on the category badge
- Category is removed (auto-saved)
Add Tag
- Type tag in input field
- Press Enter or click "+ Add"
- Tag badge appears
Add Model
- Type model name in search field
- Wait for autocomplete results
- Click on desired model
- Or click "Create new model" option
Migrating Storage Server
- Scroll to Storage Server Location section
- Select destination server from dropdown
- Click "Migrate All Files"
- Confirm the migration
- Wait for completion (page reloads)
Processing User Reports
- Scroll to User Reports section
- Review the report details
- Click one of:
- Mark Reviewed - Acknowledge receipt
- Resolve - Issue fixed
- Dismiss - Invalid report
- Page reloads with updated status
Troubleshooting
Common Errors
Error: "Invalid video ID"
The videoid parameter is missing or invalid. Ensure you're accessing the page with a valid
?videoid=123 parameter.
Error: "Video not found"
The specified videoid does not exist in tblVideos. The video may have been deleted.
Error: Video player shows black screen
- Check if the video file exists at the CDN URL
- Verify HLS master playlist is accessible
- Check browser console for 404 errors
- Try toggling to MP4 fallback
Error: "Failed to save models"
- Check that ajax/savevideofield.php exists
- Verify CSRF token is valid
- Check browser console for network errors
Error: Chapters not loading
- Verify tblVideoChapters table exists
- Check ajax/managechapters.php permissions
- Look for JavaScript errors in console
Error: Storage migration fails
- Verify target server is healthy
- Check server has sufficient space
- Ensure source files exist
- Review storage server logs
Video Player Issues
Auto-Save Issues
Translatable Strings
The following text elements should be added to backendtranslations.md:
Section Headers
- "Video Player"
- "Basic Information"
- "Technical Details"
- "Engagement Statistics"
- "Analytics & Performance"
- "Thumbnails"
- "Video Chapters & Markers"
- "Media Assets"
- "Additional Metadata"
- "Schedule"
- "Sponsors & Monetization"
- "SEO & Social Media"
- "Production Details"
- "Content Flags & Optimization"
- "User Reports"
- "Admin Notes"
- "Categories"
- "Tags"
- "Models"
- "Storage Server Location"
- "File Paths"
Field Labels
- "Title"
- "Status"
- "Access Type"
- "Video Quality"
- "Upload Date"
- "Publish Date"
- "Last Updated"
- "Description"
- "Duration"
- "Resolution"
- "FPS"
- "Bitrate"
- "File Size"
- "Codec"
- "Audio Codec"
- "Import Mode"
- "Language"
- "Views"
- "Likes"
- "Dislikes"
- "Comments"
- "Rating"
- "Downloads"
- "Impressions"
- "Clicks"
- "Click-Through Rate (CTR)"
- "Featured"
- "HLS Enabled"
- "CDN Distributed"
- "Original File Deleted"
- "Source URL"
- "Uploader"
- "Start Date"
- "End Date"
- "Primary Sponsor"
- "Sub-Sponsor"
- "Cam Site"
- "Price"
- "Currency"
- "Meta Title"
- "Meta Description"
- "Meta Keywords"
- "URL Slug"
- "Open Graph Title"
- "Open Graph Description"
- "Open Graph Image"
- "Twitter Title"
- "Twitter Description"
- "Twitter Image"
- "Release Date"
- "Production Year"
- "Studio"
- "Director"
- "Producer"
- "Series Name"
- "Episode Number"
- "Season Number"
- "Orientation"
- "Copyright Claimed"
- "DMCA Notices"
- "SEO Optimized"
- "Social Media Optimized"
- "Mobile Optimized"
Button Labels
- "Save All Changes"
- "Close"
- "Open in Main Admin"
- "Add Chapter Here"
- "Add Chapter Manually"
- "Refresh"
- "Save Chapter"
- "Cancel"
- "Update from Player"
- "Preview"
- "Migrate All Files"
- "Mark Reviewed"
- "Resolve"
- "Dismiss"
- "+ Add"
- "Suggestions"
Status Values
- "Pending"
- "Processing"
- "Active"
- "Error"
- "Deleted"
- "Free Access"
- "Members Only"
- "Subscription Required"
- "Pay-Per-View (PPV)"
- "Private Access"
Messages
- "Loading..."
- "No categories assigned"
- "No tags assigned"
- "No models assigned"
- "No chapters yet. Click 'Add Chapter' to create one."
- "No user reports for this video"
- "All Changes Auto-Saved!"
- "Error: Video ID not found"
- "Please enter a chapter title"
- "Please enter a valid timestamp"
Tooltips
- "Set as main thumbnail"
- "Delete thumbnail"
- "Click to jump to this time"
- "Edit"
- "Delete"
Related Pages
- Video Admin - Main video listing and management
- Video Processing - Batch processing queue
- Storage Servers - CDN/storage server management
- Categories - Category management
- Models - Model/performer management
- Player Settings - Video player configuration