Skip to content

Radiant Media Player with Peer5 for HLS integration




Radiant Media Player is a feature rich video player that supports HLS.

The integration with Peer5 plugin is easy and involves just two lines of code. In addition to the player script, simply include the Peer5 client and the matching Peer5 Radiant Media Player plugin based on your player version.

Peer5 client and plugins scripts

Add the following two scripts to the head of your player's page, based on your player version:

Radiant v5.x

1
2
<script src="https://api.peer5.com/peer5.js?id=PEER5_CUSTOMER_ID"></script>
<script src="https://api.peer5.com/peer5.radiant5.plugin.js"></script>

Complete Example (Radiant 5)

The following information needs to be filled according to your actual data:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Radiant MP Demo</title>
    <!-- Peer5 scripts -->
    <script src="https://api.peer5.com/peer5.js?id=PEER5_CUSTOMER_ID"></script>
    <script src="https://api.peer5.com/peer5.radiant5.plugin.js"></script>

    <!-- Radiant script -->
    <script src="https://cdn.radiantmediatechs.com/rmp/5.7.1/js/rmp.min.js"></script>
</head>
<body>
    <div id="rmpPlayer"></div>
    <script>
        var rmp = new RadiantMP('rmpPlayer');
        rmp.init({
          licenseKey: 'RADIANT_LICENSE',
          src: {
            hls: 'MANIFEST_FILE'
          },
          width: 640,
          height: 360
        });
    </script>
</body>
</html>

Visit the full Radiant Media Player docs here.

To test that you integrated with Peer5 correctly, and to see stats about what the Peer5 integration is doing, you can view the stats overlay.