Integrate FlexPlayer into your application in minutes.
First: Add this core script tag to your HTML <head> or before the closing </body> tag. You only need to do this once per page.
Second: Place the player embed div where you want the video to appear. You can use either media-player-embed or flex-player as the class name.
Create an immersive glow effect that bleeds out of the player. Customize the intensity and scope using these attributes:
data-ambient="true" - Enable the glow enginedata-ambient-blur="80" - Blur radius in pixels (best: 30-120)data-ambient-opacity="1.0" - Transparency of the glow (0.0 to 1.0)data-ambient-saturation="1.4" - Color boost multiplierdata-ambient-bleed="true" - Allow glow to extend outside player boundsAdd popup messages at specific timestamps. Format is comma-separated: start, end, content [url], position
data-annotations="..." - Use \n to separate multiple entries[URL] - Wrapping text in brackets creates a clickable linktop-left, top-center, top-right, center, bottom-left, bottom-center, bottom-rightSupport VTT tracks with custom appearance. Format: Label, lang, url, isDefault
data-subtitles-size="18px" - Font sizing (supports px, rem, %)data-subtitles-color="#ffffff" - Text track hex colordata-subtitles-bg-opacity="0.6" - Background box intensityAdd brand protection and production credits. Supports clickable logos and linked contributors.
data-watermark-url="..." - Image source for logo (PNG/SVG recommended)data-watermark-pos="..." - top-right, top-left, bottom-right, bottom-leftdata-writers="..." - Comma list: Name [Link], NameBy default, the share button uses the current page URL. You can override this to share a specific standalone player link or promotional URL.
data-share-url="..." - The specific URL that will be sent to Twitter, Facebook, or the clipboard.data-share-text="..." - Pre-filled message for social media sharing.For advanced web apps, use the JavaScript SDK to mount the player dynamically with full configuration control.
Update or swap your video source along with all metadata, subtitles, and watermarks dynamically using the update method.
If you are building a Single Page Application (SPA), you may want to update the native share buttons when routes change without reloading the whole media player.
For cleaner deployment, move your entire configuration to a separate JSON file. This is highly recommended for complex setups with many annotations or subtitle tracks.
data-config-url="player-config.json" - Point the player to any hosted JSON file.Enable verbose logging in the browser console for integration troubleshooting and event tracking.
data-debug="true" - Activates console logs for playback, analytics, and error eventsThe Cloud Sync feature allows you to save your entire studio configuration—including custom styles, annotations, and watermark settings—to our secure cloud storage.
Cloud Save - Generates a unique 10-character key and copies it to your clipboard.Load - Entering your key in the studio restores all fields and designer states instantly.Tip: These keys are perfect for moving your work between devices or sharing complex setups with collaborators without sending long code blocks.
Automation & Overrides: When using a data-config-key, any other data- attributes explicitly set on the element will override the cloud settings. This allows you to use a master template key while dynamically changing specific values like data-video-src or data-title for different pages.