-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds support for legacy webOS version (webOS 3 & 4) with our examples - updates to player version 7.8.1
- Loading branch information
1 parent
00c8670
commit 4b4212b
Showing
17 changed files
with
411 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | ||
<title>DASH DVR</title> | ||
<link rel="stylesheet" type="text/css" href="css/player.css"> | ||
<meta name="robots" content="noindex"> | ||
</head> | ||
|
||
<body> | ||
<div id="rmp"></div> | ||
<script> | ||
var src = { | ||
dash: 'https://5b44cf20b0388.streamlock.net:8443/dvr/dvr/manifest.mpd?DVR' | ||
}; | ||
var settings = { | ||
licenseKey: 'your-license-key', | ||
src: src, | ||
delayToFade: 5000, | ||
autoplay: true, | ||
contentMetadata: { | ||
title: 'DASH DVR', | ||
}, | ||
skin: 'tv' | ||
}; | ||
|
||
var _onLoadAppendPlayer = function () { | ||
window.rmp = new RadiantMP('rmp'); | ||
window.rmp.init(settings); | ||
}; | ||
|
||
var _onErrorLog = function () { | ||
console.log('could not load Radiant Media Player JavaScript file'); | ||
}; | ||
|
||
var rmpScript = document.createElement('script'); | ||
// Feature detection for newer browsers that support module import/export | ||
var newerBrowsers = 'noModule' in HTMLScriptElement.prototype; | ||
if (newerBrowsers) { | ||
rmpScript.src = 'https://cdn.radiantmediatechs.com/rmp/7.8.1/js/rmp.min.js'; | ||
} else { | ||
rmpScript.src = 'https://cdn.radiantmediatechs.com/rmp/0.1.0/js/rmp.min.js'; | ||
} | ||
rmpScript.async = true; | ||
rmpScript.addEventListener('load', _onLoadAppendPlayer); | ||
rmpScript.addEventListener('error', _onErrorLog); | ||
document.head.appendChild(rmpScript); | ||
</script> | ||
<script src="js/player-live.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.