Enterprise-grade embeddable media player with analytics
<!-- 1. The Container --> <div id="player" style="width: 100%; height: 500px;"></div> <!-- 2. The Library --> <script src="https://player.ray.techspecs.io/raymedia.js"></script> <!-- 3. The Configuration --> <script> RayMedia.create({ // --- Core Settings --- container: '#player', // DOM selector contentId: 'YOUR_CONTENT_ID', // Required // --- Productivity Features --- assistant: true, // Smart Summaries & Interactive Chat dictionary: true, // Smart Dictionary // --- Casting & Device Features --- pip: true, // Picture-in-Picture airplay: true, // Apple AirPlay chromecast: true, // Google Cast // --- Monetization --- ads: true, // VAST Prerolls & Subtitle Text Ads // --- Playback Behavior --- autoplay: false, analytics: true, defaultQuality: 'auto', // --- Event Callbacks --- onReady: () => console.log('✅ Ready'), onError: (err) => console.error('⚠️ Error:', err) }); </script>
The player automatically fetches all your video data using just the content ID.
The unique identifier for your media content.
Enable/disable analytics tracking. Default: true
Auto-start playback when ready. Default: false
Preferred quality on load. Options: 1080p, 720p, 480p, 360p