LVP Player
Legacy HTML5 player for VOD playlist and single-asset playback, replaced by the Uplynk Player.
The Uplynk LVP Player provides additional capabilities that work with the Uplynk platform, such as VOD playlist playback.
This player replaces the player for the deprecated Limelight Video Platform. The documentation below references how the player behaved with the Limelight Video Platform and what changed for playing back assets with Uplynk.
Single Asset Playback
The following HTML plays back a single Uplynk asset using the LVP Player:
<div id="lvp_player_211280"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"height": "321",
"width": "540",
"autoTitle": "item", // Sets title to asset name
"mediaId": "uplynk_external_id",
"orgId": "uplynk_user_id",
"enableCookies": false,
"playerId": "lvp_player_211280",
"playerForm": "LVPPlayer"
});
</script>In this example, the original LVP orgId is replaced with the Uplynk Workspace ID (formerly User ID) and passed with the embed. The original LVP mediaId is now the Uplynk External ID.
If mediaId is an Uplynk Asset ID (GUID) instead of an Uplynk External ID, then orgId is not required.
You can set height and width to a pixel value, "100%", or any percentage to fill the screen as desired.
Cookies are disabled in the player by default. The enableCookies parameter is shown above to demonstrate its use.
Single Asset Playback for Audio-Only
Audio-only playback does not require the LVP Player to display a video window.
The following HTML plays back a single audio-only Uplynk asset using the LVP Player:
<div id="player_audio"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"width": "300", // Default audio player width
"height": "auto", // Should be auto when adding auto title
"playerId": "player_audio",
"orgId": "uplynk_user_id",
"mediaId": "uplynk_external_id",
"autoTitle": "item",
"playerForm": "LVPAudioPlayer",
skin: {
// New title related style options
playerTitleFont: "18px sans-serif",
playerTitleColor: "#FFFFFF",
playerTitleBackground: "#000000"
},
"controlBar": {
"audioTrackButton": true,
"fullscreenToggle": false
}
});
</script>In this example, the original LVP orgId is replaced with the Uplynk User ID and passed with the embed. The original LVP mediaId is now the Uplynk External ID. For playerForm, use LVPAudioPlayer.
When using a title control such as autoTitle, it is recommended to have height set to "auto"
Using Playlists
For playlist information to be viewable by the LVP Player, the playlist must be public. Account-level settings control whether public playlists are allowed and whether new playlists default to public or private. If a playlist is labeled public but the account settings disallow public playlists, the account settings override the individual playlist setting.
Each playlist has a Playlist ID as shown below. Copy it by selecting the double-box icon next to the GUID in the Playlist Preview area.
The account settings for playlists are shown below. These settings may override individual playlist settings.
You can make individual Uplynk playlists public or private as shown below.
Asset Descriptions in Playlists
To display a description for an asset in a playlist (in addition to the asset title), add a description metadata field to the asset as shown below.
Playing Video Playlists
The following HTML plays back an Uplynk video playlist using the LVP Player (horizontal format):
<div id="player_playlists"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"playerId": "player_playlists",
"channelId": "uplynk_player_id",
"showPlaylist": true,
"enableCookies": false,
"playlistOrientation": "right",
"playerForm": "LVPPlayerHorizontalPlaylist"
});
</script>For channelId, use the Playlist ID. For playerForm, use LVPPlayerHorizontalPlaylist.
The following HTML plays back an Uplynk video playlist using the LVP Player (vertical format):
<div id="player_playlists"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"playerId": "player_playlists",
"channelId": "uplynk_player_id",
"showPlaylist": true,
"enableCookies": false,
"playerForm": "LVPPlayerVerticalPlaylist"
});
</script>For channelId, use the Playlist ID. For playerForm, use LVPPlayerVerticalPlaylist.
When testing HTML files that play back playlists, serve the HTML from a web server rather than opening it directly in the browser. Thumbnail images for assets do not appear when run from the browser directly but display correctly when served from a web server. On macOS, you can use "Simple Web Server" (https://simplewebserver.org) for this purpose.
Playing Audio-Only Playlists
Basic Audio-Only Playlist Playback
The following HTML plays back an Uplynk audio-only playlist using the LVP Player:
<div id="audio_only_playlist_player"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"playerId": "audio_only_playlist_player",
"channelId": "uplynk_player_id",
"showPlaylist": true,
"enableCookies": false,
"playerForm": "LVPAudioPlaylistPlayer"
});
</script>In the above HTML, for channelId, use the Playlist ID. For playerForm, use LVPAudioPlaylistPlayer.
When testing HTMLs that play back playlists, the HTML must be run from a web server rather than just running locally in the browser. When run from the browser directly, the thumbnail images for the assets do not appear. The thumbnail images appear correctly when running from a web server. On the Mac, "Simple Web Server" (https://simplewebserver.org) can be used for this purpose.
Audio-Only Playlist Playback with Auto-Height and Title
In May 2025, auto-height and title support were added to audio-only playlist playback. The following HTML plays back an Uplynk audio-only playlist with auto-height and title using the LVP Player:
<div id="uplynk-player-container"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"playerId": "uplynk-player-container",
"playerForm": "LVPAudioPlaylistPlayer",
"skin": {
// New title related style options
"playerTitleFont": "18px sans-serif",
"playerTitleColor": "#FFFFFF",
"playerTitleBackground": "#000000"
},
"height": "auto", // This enables auto-height mode
"title": "Auto-Height Player", // New title param
"channelId": "uplynk_player_id"
});
</script>In the above HTML, for channelId, use the Playlist ID. For playerForm, use LVPAudioPlaylistPlayer.
When testing HTMLs that play back playlists, the HTML must be run from a web server rather than just running locally in the browser. When run from the browser directly, the thumbnail images for the assets do not appear. The thumbnail images appear correctly when running from a web server. On the Mac, "Simple Web Server" (https://simplewebserver.org) can be used for this purpose.
Customization
General Player Customization
Pass the following parameters in the LimelightPlayerUtil.embed function call. You can use either single quotes or double quotes when setting parameter values. Double quotes are shown below.
height: pixels (e.g. "500px" or "500") or "auto"
Auto height only supported for LVPAudioPlaylistPlayer as the playerForm
width: pixels (e.g. "500px" or "500"), percentage (e.g. "50%"), or "auto"
For non-playlists, auto height/width requires one dimension to be defined
enableCookies: "true" or "false"(false recommended)
autoTitle:
"none": Standard behavior, disables auto title"playlist": Automatically uses the playlist title"item": Automatically uses the current video's title
title: Sets the player title to a string (e.g. "My Player")
autoTitle and title are not supported for LVPAudioPlayer as the playerForm
showPlaylist: "true" or "false" for a playlist player
playlistOrientation: "left", "right", "top", or "bottom"
Skin Controls for Customization
The LVP Player has additional "skin" controls that let you customize its appearance, including fonts, colors, and thumbnail visibility. Specify fonts and colors using CSS values.
You can use either single quotes or double quotes when setting parameter values. Double quotes are shown below.
CSS fonts are found at https://www.w3schools.com/css/css_font.asp.
CSS colors are found at https://www.w3schools.com/cssref/css_colors_legal.php.
The following example shows how to specify skin controls:
<div id="audio_only_playlist_player"></div>
<script charset="UTF-8" src="https://ovp-static.uplynk.net/limelightjs-player.js"></script>
<script>
LimelightPlayerUtil.embed({
"playerId": "audio_only_playlist_player",
"channelId": "bfc1f4d5ae9a4af9b8bc5754e98b3b3a",
"showPlaylist": true,
"enableCookies": false,
"playerForm": "LVPAudioPlaylistPlayer",
"skin": {
"itemBackground": "purple",
"activeItemBackground": "red",
"playlistTitleColor": "white",
"playlistDescriptionColor": "white",
"playlistDurationColor": "white",
"playlistThumbnailVisible": false,
"playlistDescriptionVisible": false,
"playlistDurationVisible": true,
"scrollbarTrackColor": "blue",
"scrollbarThumbColor": "yellow"
}
});
</script>The subsections below list the complete set of skin controls for the LVP Player.
Video Player Config Options
itemFont(CSS font, e.g."itemFont": "18px Courier New")headerFont(CSS font, e.g."headerFont": "18px Courier New")titleFont(CSS font, e.g."titleFont": "18px Courier New")
Colors (Set to CSS Color)
headerBackgrounditemBackgroundactiveItemBackgroundcontrolBackgroundcontrolColorbigPlayColorplayerTitleFontplayerTitleColorplayerTitleBackgroundplaylistColorplaylistBackgroundplaylistTitleColorplaylistDescriptionColorplaylistDurationColorscrollbarTrackColorscrollbarThumbColor
Visibility (Set to true/false)
playlistThumbnailVisibleplaylistDescriptionVisibleplaylistDurationVisiblevideoVisible
Video.js Events Emitted
The LVP Player emits the following Video.js events:
limelight-ad-load: Triggered when an ad is loaded for playback.
limelight-ad-play: Triggered when an ad begins playing, or when playback resumes after a pause.
limelight-ad-complete: Triggered when an ad has finished playing.
limelight-captions-ready: Triggered when captions have been added to the current media item.
limelight-captions-error: Triggered when an error occurs while adding captions to the media.
limelight-channel-complete: Triggered when the last media item in a channel completes. Coincides with onChannelComplete.
limelight-channel-load: Triggered when a new channel is loaded by the UI or API. Coincides with onChannelLoad.
limelight-content-play: Triggered when primary content playback starts or resumes, after any pre-roll ads have played.
limelight-content-pause: Triggered when the primary content is paused by the UI, API, or cue point.
limelight-content-timeupdate: Triggered periodically while primary content is playing (time updates).
limelight-media-complete: Triggered when the media item and all ads have finished playing. Coincides with the legacy onMediaComplete event.
limelight-media-load: Triggered when a new media item is loaded by the UI, API, or auto-advance and is ready to play. Coincides with the legacy onMediaLoad event.
limelight-media-play: Triggered when a media item initially begins playback, before any pre-roll ads play. Coincides with onMediaPlay.
limelight-media-update: Triggered as soon as a new media item has been requested, before it is fully loaded and ready to play.
limelight-player-load: Triggered once when a new player is embedded and the API is ready to use. Coincides with the legacy onPlayerLoad event.
limelight-seeked: Triggered after a seek completes, before normal playback resumes.
Updated 7 days ago