Video Providers
What are Video Providers?
Video providers are the platforms or sources where your product videos come from. The Product Video module supports multiple providers, making it easy to add videos from different sources to your products.
Module comes with two pre-configured providers: YouTube and Vimeo. Other providers must be configured first in the module settings before you can use them.
Supported Providers
YouTube
The world's largest video platform - perfect for product demos, tutorials, and reviews.
Why use YouTube?
- ✅ Free unlimited hosting
- ✅ Automatic quality adjustment
- ✅ Fast loading worldwide
- ✅ Built-in player controls
- ✅ Mobile-optimized playback
Supported URL formats: Regular Videos and Shorts
https://www.youtube.com/watch?v=VIDEO_ID
https://youtu.be/VIDEO_ID
https://youtube.com/shorts/VIDEO_ID
...
The module has the option to use YouTube's privacy-enhanced mode (youtube-nocookie.com)
Vimeo
Ad-free professional video hosting platform, ideal for high-quality product presentations.
Why use Vimeo?
- ✅ Clean, ad-free playback
- ✅ Professional appearance
- ✅ High-quality streaming
- ✅ Customizable player colors
- ✅ Privacy controls
Supported URL formats:
https://vimeo.com/VIDEO_ID
https://player.vimeo.com/video/VIDEO_ID
HTML5 (Self-Hosted)
Host your own video files directly on your server for complete control.
Why use HTML5?
- ✅ Complete control over your content
- ✅ No third-party dependencies
- ✅ No branding or ads
- ✅ Works offline/intranet
- ✅ Custom player styling
Requirements:
- Recommended format: MP4 (H.264 codec)
- Max file size: Depends on your server (typically 50-100MB)
- Other supported formats: WebM, OGG
Self-hosted videos use your server's bandwidth. For high-traffic stores, consider YouTube or Vimeo.
Technical: Optimal video settings
For best performance and compatibility:
Format: MP4
Codec: H.264
Resolution: (depends on the finality, if fullscreen is supported)
Aspect Ratio: The same as the product images, if the image placement is going to be used
Bitrate: 5-8 Mbps
Frame rate: 30 fps
Audio: AAC, 128 kbps
Custom iFrame
Embed content from any platform using iframe code - not just videos!
What can you embed?
- 📹 Videos from any platform (Dailymotion, Wistia, Facebook, etc.)
- 🗺️ Interactive maps
- 🎨 3D model viewers
- 📊 Interactive presentations
- 🎮 Product configurators
- ...anything that provides iframe embed code!
Why use Custom Providers?
- ✅ Works with ANY platform
- ✅ Support for specialized content
- ✅ Maximum flexibility
- ✅ Easy to add new platforms
Custom providers aren't limited to videos - use them for interactive 3D models, maps, or any embeddable content!
For security reasons, only URLs from configured providers will be accepted. If you paste a URL from an unconfigured platform, you'll need to add that provider first.
How to Add/Enable Providers
Using The Default Providers (YouTube/Vimeo)
YouTube and Vimeo come pre-configured and can't be removed. Scripts related to the usage of those providers will only be loaded if the product has a video from them, otherwise no scripts will be loaded.
Default providers can't be disabled nor deleted to prevent module malfuncitons.
Adding Custom Providers
For other platforms (Dailymotion, Wistia, Facebook, etc.), you need to add them first:
- URL-based Provider
- iFrame Provider
For platforms with video URLs (like Dailymotion):
- Go to Modules → Product Video → Configure
- Click on Providers tab
- Click Add New Provider
- Fill in the form:
- Name: Provider name (e.g., "Dailymotion")
- Type: Select "URL Pattern"
- URL domain: Enter the URL domain (e.g.,
dailymotion.com)
- Click Save
Example URL Pattern:
Domain: dailymotion.com
Path contains: /video/
For any platform with iframe embed code:
- Go to Modules → Product Video → Configure
- Click on Providers tab
- Click Add New Provider
- Fill in the form:
- Name: Provider name (e.g., "Sketchfab 3D")
- Type: Select "Custom iFrame"
- Allowed Domains: Enter trusted domains (security)
- Click Save
When using this provider: Users will paste the complete iframe code, not just a URL.
Only add domains you trust to prevent malicious content embedding.
Adding Videos to Products
Step-by-Step Process
- YouTube / Vimeo / URLs
- HTML5 (Upload)
- Custom iFrame
Using configured providers:
- Navigate to Catalog → Products
- Edit your product
- Go to the Videos tab
- Click Add Video
- Paste your video URL
- Check the URL status:
- ✅ Green: Provider recognized, ready to save
- ❌ Red: Provider not configured
If the URL turns red, it means that provider hasn't been added yet. You need to:
- Add the provider first in module configuration
- Come back and try again
Coming soon: Direct link to add providers from this screen!
- Configure display options (optional)
- Click Save
Upload your own video file:
- Navigate to Catalog → Products
- Edit your product
- Go to the Videos tab
- Click Add Video
- Select Upload file option
- Choose your video file from your computer
- Wait for upload to complete
- Configure display options (optional)
- Click Save
Tips:
- Compress your video before uploading
- Use MP4 format for best compatibility
- Keep file size under 50MB when possible
Using custom iframe providers:
- Make sure you've added an iframe provider first
- Get your iframe code from the platform
- Navigate to Catalog → Products
- Edit your product
- Go to the Videos tab
- Click Add Video
- Select your Custom iFrame provider
- Paste the complete iframe code
- Check the code status:
- ✅ Green: Domain allowed, ready to save
- ❌ Red: Domain not in allowed list
Only domains added to the provider's allowed list will work. This prevents malicious content embedding.
- Configure display options (optional)
- Click Save
Provider Security
Why URL Validation?
The module validates all video URLs for security reasons:
Benefits:
- 🔒 Prevents malicious content injection
- ✅ Ensures only configured platforms are used
- 🛡️ Protects your store from XSS attacks
- 📋 Maintains control over content sources
How it works:
In future updates, you'll be able to add providers directly from the "Add Video" screen without leaving the page!
Choosing the Right Provider
Quick Decision Guide
Use YouTube when:
- Your video is already on YouTube
- You want free, fast hosting
- You need global availability
- You're okay with YouTube branding
Use Vimeo when:
- You want an ad-free experience
- You need professional appearance
- You want advanced privacy controls
- You have a Vimeo account
Use HTML5 when:
- You need complete control
- You have few videos (server bandwidth)
- You want no third-party branding
- You're on intranet/offline environment
Use Custom Provider when:
- Your video is on another platform
- You need interactive content (maps, 3D)
- Standard providers don't support your platform
- You have specialized embed requirements
Provider Settings
Configuring Enabled Providers
Each provider has specific settings you can customize:
- YouTube
- Vimeo
- HTML5
- Custom Providers
Available Options:
- ✓ Enable/Disable provider
- Autoplay (on/off)
- Show/hide controls
- Loop video
- Privacy mode (youtube-nocookie.com)
- Modest branding
Access: Modules → Product Video → Configure → Providers → YouTube
Available Options:
- ✓ Enable/Disable provider
- Autoplay (on/off)
- Show/hide controls
- Loop video
- Player color customization
- Show/hide video title
Access: Modules → Product Video → Configure → Providers → Vimeo
Available Options:
- Show/hide controls
- Loop video
- Preload settings
- Custom poster image
- Allowed file formats
Access: Modules → Product Video → Configure → HTML5 Settings
Available Options:
- ✓ Enable/Disable provider
- Provider name
- Allowed domains (security)
- Responsive wrapper
- Allow fullscreen
- Sandbox settings
Access: Modules → Product Video → Configure → Providers → [Your Provider]
Common Questions
Why can't I paste any URL I want?
For security reasons, the module only accepts URLs from configured providers. This prevents:
- Malicious content injection
- Unauthorized iframe embedding
- XSS attacks on your store
- Unknown/untrusted content sources
Solution: Add the provider first in module configuration, then use the URL.
My URL turned red - what should I do?
A red URL means the provider isn't configured yet. Follow these steps:
- Note which platform your video is from (e.g., Dailymotion)
- Go to Modules → Product Video → Configure → Providers
- Add that provider (see Adding Custom Providers)
- Return to your product
- Paste the URL again - it should now turn green!
Can I use multiple providers on the same product?
Yes! You can mix different providers on a single product:
- YouTube demo video
- Vimeo testimonial
- HTML5 product closeup
- Custom iframe 3D viewer
As long as each provider is configured, they all work together.
Do I need to add YouTube and Vimeo?
No! YouTube and Vimeo come pre-configured. You just need to enable them in the Providers settings. No need to add patterns or configurations.
Can I disable a provider temporarily?
Yes! Go to Providers settings and click Disable on any provider. Videos from that provider will stop displaying (but won't be deleted).
Re-enable anytime to restore functionality.
What happens to videos if I remove a provider?
Videos remain in your database but won't display on the front-end. If you re-add the provider, they'll work again automatically.
Be careful when deleting providers - make sure no products are using videos from that source!
Troubleshooting
Common Issues
URL immediately turns red when pasted
Cause: The provider for that URL isn't configured yet.
Solution:
- Identify the video platform (YouTube, Vimeo, Dailymotion, etc.)
- Check if that provider is enabled in Modules → Product Video → Providers
- If not listed, add the provider
- Try pasting the URL again
Provider enabled but URL still rejected
Check these points:
✓ URL format is correct - Copy directly from the video page
✓ Provider is actually enabled - Check the toggle is ON
✓ URL matches the pattern - For custom providers, verify your pattern is correct
✓ Clear cache - Both PrestaShop and browser cache
Still not working? The URL pattern for your custom provider might be incorrect. Double-check the domain and path pattern.
iframe code rejected (red)
Cause: The domain in the iframe isn't in the allowed domains list.
Solution:
- Copy the domain from your iframe src (e.g.,
player.example.com) - Go to Providers → Your Custom Provider
- Add that domain to Allowed Domains
- Save and try again
Example:
<iframe src="https://player.example.com/video/123">
Add player.example.com to allowed domains.
Best Practices
- Enable only needed providers - Keep your list clean and manageable
- Use default providers first - YouTube/Vimeo are tested and optimized
- Document custom providers - Note why you added each custom provider
- Review allowed domains - Periodically check iframe security settings
- Test after adding - Always test a provider with a real video URL
Security Tips:
- Only add providers from trusted platforms
- Keep allowed domains list minimal
- Review custom iframe sources regularly
- Disable unused providers instead of deleting them
Next Steps
📍 Video Placements
Learn where videos can be displayed on your product pages
⚙️ Configuration
Configure module settings and customize behavior
If you have questions about adding providers or encounter issues, check our Support page or contact us.