Theoplayer with Peer5 for HLS integration¶
THEOplayer 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 THEOplayer 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:
Complete Example (THEOplayer v2.x)¶
The following information needs to be filled according to your actual data:
PEER5_CUSTOMER_IDyour Peer5 Customer ID
MANIFEST_FILEurl to your
also replace the '/path/to' (3 location overall) with your theoplayer library location link.
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 28 29 30
Visit the full Theoplayer 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.