We provide optimised builds that pre-pack common features and reduce the network/processing cost to load the player into a web page. We recommend using the build that best match your needs. Those builds are available through our cloud player or self-hosting. They can be used through the HTML <script> tag.
No matter what build you use, if you
request a specific feature that is not available in the selected build by default,
the player will attempt to load the required dependency when needed - so if you are not
sure what to use, simply
include the generic rmp.min.js
build.
If you need to support legacy environments you will need to
use rmp.min.js
build as it will automatically load legacy builds for hls.js and Shaka player
based on browser/WebView capabilities.
Available production builds are:
rmp.min.js
: Radiant Media Player core library - no specific optimisation -
will async load
dependencies when needed based on input player settings
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp.min.js
rmp-hlsjs.min.js
: recommended for streaming HLS TS or fMP4 HLS
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp-hlsjs.min.js
rmp-shaka.min.js
: recommended for streaming DASH, DASH DRM, fMP4 HLS DRM,
DASH & fMP4 HLS offline download
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp-shaka.min.js
rmp-vast.min.js
:
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp-vast.min.js
rmp-three.min.js
: recommended for streaming 360° video with MP4/WebM
progressive download
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp-three.min.js
rmp-vttjs.min.js
: recommended for displaying side-loaded VTT captions with
MP4/WebM progressive download
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp-vttjs.min.js
rmp.module.js
: for project where ES2015 modules are available you can
add the player to your page through the import
JavaScript statement. Note
that importing Radiant Media Player as a module requires self-hosting of player files
and is only available to paid customers. Player
code example:
Our module build supports the same environments as our script build
// import Radiant Media Player as a ES2015 module import RadiantMP from 'radiantmediaplayer/dist/rmp.module.js'; // HLS streaming source const src = { hls: 'https://your-live-hls-url.m3u8' }; // Your player settings const settings = { licenseKey: 'your-license-key', src: src, width: 640, height: 360, pathToRmpFiles: 'radiantmediaplayer/', contentMetadata: { poster: [ 'https://your-poster-url.jpg' ] } }; const elementID = 'rmp'; const rmp = new RadiantMP(elementID); rmp.init(settings);
rmp.debug.js
: including this build on your page will print player logs to
your browser
console for easier debugging. See our debugging
guide for more debugging information.
If your are using the player as a ES2015
module you can add
the rmp.module.debug.js
.
https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp.debug.js
©2015-2024 Radiant Media Player. All Rights Reserved.