Video Support
Display videos within HMI pages for cameras, presentations, or media content.
Overview
Video support lets you embed videos directly into HMI pages. This is useful for:
- Displaying camera feeds
- Showing corporate videos
- Playing instructional content
- Broadcasting live streams
Supported Video Types
| Type | Description | Best for |
|---|---|---|
| MP4 | Standard video files | Pre-recorded content, uploaded videos |
| YouTube | YouTube hosted videos | Easy sharing, no hosting needed |
HLS and RTSP streaming formats are available for advanced use cases.
Adding Videos to HMI Pages
Videos are added in xDraw and configured through Video Settings:
In xDraw (Designer)
- Open your HMI page in xDraw
- Add a Video element to the page
- Set the VideoSourceCode to match your Video Settings entry
- Position and resize as needed
- Save the .drwx file
In XReports (Settings)
- Go to Settings → Video Settings
- Create a video source with the matching Code
- Configure the URL, playback options, and display settings
The Code in Video Settings must match the VideoSourceCode in your .drwx file.
Video Fit Modes
Control how videos appear when their size doesn't match the container:
Cover Mode (Default)
- Fills the entire container
- May crop edges if aspect ratios differ
- Best for: Background videos, full-screen displays
Contain Mode
- Shows the complete video
- Adds black bars if needed (letterboxing)
- Best for: Camera feeds, content where edges matter
How to Change
- Go to Settings → Video Settings
- Select the video source
- Change the Video Fit dropdown
- Click Save
Playback Options
Configure how videos play:
| Option | What it does |
|---|---|
| Auto Play | Starts playing automatically when the page loads |
| Loop | Repeats the video when it ends |
| Muted | Plays without sound |
| Show Controls | Displays play, pause, and volume buttons |
Recommended Settings by Use Case
Lobby/Public Display:
- Auto Play: On
- Loop: On
- Muted: On
- Show Controls: Off
Control Room Camera:
- Auto Play: On
- Loop: Off (live feed)
- Muted: On
- Show Controls: Off
Training/Presentation:
- Auto Play: Off
- Loop: Off
- Muted: Off
- Show Controls: On
Thumbnail Images
You can set a thumbnail (poster) image that shows before the video plays:
- Go to Settings → Video Settings
- Edit the video source
- Set the Thumbnail URL to an image file
- Save
The thumbnail displays:
- Before the video starts playing
- If the video fails to load (as a fallback)
When Videos Don't Play
If a video cannot play (wrong URL, network issue, etc.), XReports shows a fallback display:
- The thumbnail image (if set)
- A placeholder graphic
- An error message
This ensures your HMI page still looks presentable even if video fails.
Troubleshooting
Video shows placeholder instead of playing
- Check the video URL in Video Settings
- Test the URL directly in a browser
- Verify the video file exists and is accessible
- Check that the video source is enabled
Video is cropped (can't see edges)
- Go to Video Settings
- Change Video Fit from "Cover" to "Contain"
- Save and refresh the page
Video has black bars
This is normal in "Contain" mode when aspect ratios don't match. If you prefer full-screen:
- Change Video Fit to "Cover"
- Note: Some edges may be cropped
YouTube video not working
- Check the URL format (should be full URL like
https://www.youtube.com/watch?v=...) - Some videos may block embedding
- Check your internet connection
Video plays in HMI but not in Public Presentation
Both use the same Video Settings. Check:
- The video source is enabled
- The Code matches between settings and .drwx file
- Refresh the presentation page
Tips
For Best Performance
- Use MP4 format with H.264 encoding
- Keep video files under 200MB
- Use YouTube for large files to reduce server load
For Public Displays
- Always enable Auto Play and Loop
- Enable Muted (sound can be startling)
- Disable Show Controls (no one can click them)
- Set an attractive Thumbnail for the loading state
For Camera Feeds
- Use Contain mode to see the full frame
- Disable Loop (not applicable for live feeds)
- Consider using HLS format for live streams
Related Topics
- Video Settings - Configure video sources
- Public Presentation - Display on public screens
- HMI Overview - HMI fundamentals