From 4b4212bd3776890bd8ce7bc698addb25903a88ee Mon Sep 17 00:00:00 2001 From: radiantmediaplayer Date: Mon, 30 May 2022 15:59:33 +0200 Subject: [PATCH] 1.1.0 - adds support for legacy webOS version (webOS 3 & 4) with our examples - updates to player version 7.8.1 --- webapp/dash-drm-3.html | 29 +++++++++-- webapp/dash-drm-4.html | 68 ++++++++++++++++--------- webapp/dash-drm-6.html | 29 +++++++++-- webapp/dash-dvr.html | 54 ++++++++++++++++++++ webapp/dash-ima-ads.html | 29 +++++++++-- webapp/dash-live.html | 30 ++++++++--- webapp/dash-rmp-vast-ads.html | 29 +++++++++-- webapp/dash-rmp-vast-skippable-ads.html | 58 +++++++++++++++++++++ webapp/dash-vod-av1-webm.html | 28 ++++++++-- webapp/dash-vod-av1.html | 28 ++++++++-- webapp/dash-vod-avc.html | 28 ++++++++-- webapp/dash-vod-hevc.html | 28 ++++++++-- webapp/dash-vod-vp9-longform.html | 36 ------------- webapp/dash-vod-vp9.html | 28 ++++++++-- webapp/index.html | 3 +- webapp/js/player-live.js | 19 ++++--- webapp/js/player.js | 19 ++++--- 17 files changed, 411 insertions(+), 132 deletions(-) create mode 100644 webapp/dash-dvr.html create mode 100644 webapp/dash-rmp-vast-skippable-ads.html delete mode 100644 webapp/dash-vod-vp9-longform.html diff --git a/webapp/dash-drm-3.html b/webapp/dash-drm-3.html index 8751212..7e25e7d 100644 --- a/webapp/dash-drm-3.html +++ b/webapp/dash-drm-3.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-drm-4.html b/webapp/dash-drm-4.html index 42dd4ed..350fbc8 100644 --- a/webapp/dash-drm-4.html +++ b/webapp/dash-drm-4.html @@ -10,10 +10,30 @@ - -
+
diff --git a/webapp/dash-drm-6.html b/webapp/dash-drm-6.html index 86806d8..3dab167 100644 --- a/webapp/dash-drm-6.html +++ b/webapp/dash-drm-6.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-dvr.html b/webapp/dash-dvr.html new file mode 100644 index 0000000..5785745 --- /dev/null +++ b/webapp/dash-dvr.html @@ -0,0 +1,54 @@ + + + + + + + DASH DVR + + + + + +
+ + + + + \ No newline at end of file diff --git a/webapp/dash-ima-ads.html b/webapp/dash-ima-ads.html index 63a95fb..7f104e8 100644 --- a/webapp/dash-ima-ads.html +++ b/webapp/dash-ima-ads.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-live.html b/webapp/dash-live.html index 65eb292..58300cd 100644 --- a/webapp/dash-live.html +++ b/webapp/dash-live.html @@ -10,8 +10,7 @@ - -
+
- + \ No newline at end of file diff --git a/webapp/dash-rmp-vast-ads.html b/webapp/dash-rmp-vast-ads.html index f56ce83..2180934 100644 --- a/webapp/dash-rmp-vast-ads.html +++ b/webapp/dash-rmp-vast-ads.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-rmp-vast-skippable-ads.html b/webapp/dash-rmp-vast-skippable-ads.html new file mode 100644 index 0000000..ab21d6d --- /dev/null +++ b/webapp/dash-rmp-vast-skippable-ads.html @@ -0,0 +1,58 @@ + + + + + + + DASH with skippable video ads (rmp-vast) + + + + + +
+ + + + + \ No newline at end of file diff --git a/webapp/dash-vod-av1-webm.html b/webapp/dash-vod-av1-webm.html index 61d67f9..4525c9f 100644 --- a/webapp/dash-vod-av1-webm.html +++ b/webapp/dash-vod-av1-webm.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-vod-av1.html b/webapp/dash-vod-av1.html index 266ca9c..db04376 100644 --- a/webapp/dash-vod-av1.html +++ b/webapp/dash-vod-av1.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-vod-avc.html b/webapp/dash-vod-avc.html index 2c5db8e..89ae82a 100644 --- a/webapp/dash-vod-avc.html +++ b/webapp/dash-vod-avc.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-vod-hevc.html b/webapp/dash-vod-hevc.html index 0bc6ebe..6194bc3 100644 --- a/webapp/dash-vod-hevc.html +++ b/webapp/dash-vod-hevc.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/dash-vod-vp9-longform.html b/webapp/dash-vod-vp9-longform.html deleted file mode 100644 index a25d547..0000000 --- a/webapp/dash-vod-vp9-longform.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - DASH VOD AVC - - - - - - -
- - - - - \ No newline at end of file diff --git a/webapp/dash-vod-vp9.html b/webapp/dash-vod-vp9.html index 738f346..0f88ef0 100644 --- a/webapp/dash-vod-vp9.html +++ b/webapp/dash-vod-vp9.html @@ -10,8 +10,7 @@ - -
+
diff --git a/webapp/index.html b/webapp/index.html index fc1e38e..552f762 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -31,14 +31,15 @@

Select a player

  • DASH VOD AVC
  • DASH VOD HEVC
  • DASH VOD VP9
  • -
  • DASH VOD VP9 (longform content)
  • DASH VOD AV1 (MP4 container)
  • DASH VOD AV1 (WebM container)
  • DASH LIVE AVC
  • +
  • DASH DVR AVC
  • DASH DRM Angel One no_auth (Google - Widevine)
  • DASH DRM - 8 Byte IV (Verizon - Widevine)
  • DASH DRM Big Buck Bunny (Azure - Widevine)
  • DASH with video ads (rmp-vast)
  • +
  • DASH with skippable video ads (rmp-vast)
  • Key Checker
  • Environment API (checkenv)
  • diff --git a/webapp/js/player-live.js b/webapp/js/player-live.js index 32acf2f..df95b1a 100644 --- a/webapp/js/player-live.js +++ b/webapp/js/player-live.js @@ -2,8 +2,8 @@ var playerButtons = [ { id: 0, name: 'playPause', element: null } ]; -var container = document.getElementById('rmpPlayer'); -var currentActiveButtonId, rmp; +var container = document.getElementById('rmp'); +var currentActiveButtonId; var currentActiveButton; var _createEvent = function (eventName, element) { @@ -64,24 +64,24 @@ var _triggerButton = function () { // we deal with 2 kind of remote: Basic Device, Smart Control 2016 var _onKeyDown = function (e) { - var currentTime = rmp.getCurrentTime(); + var currentTime = window.rmp.getCurrentTime(); var keyCode = e.keyCode; - rmp.setControlsVisible(true); + window.rmp.setControlsVisible(true); switch (keyCode) { case 412: // MediaRewind - rmp.seekTo(currentTime - 10000); + window.rmp.seekTo(currentTime - 10000); break; case 417: // MediaFastForward - rmp.seekTo(currentTime + 10000); + window.rmp.seekTo(currentTime + 10000); break; case 415: // MediaPlay - rmp.play(); + window.rmp.play(); break; case 19: // MediaPause - rmp.pause(); + window.rmp.pause(); break; case 413: // MediaStop - rmp.stop(); + window.rmp.stop(); break; case 37: // ArrowLeft case 38: // ArrowUp @@ -99,7 +99,6 @@ var _onKeyDown = function (e) { // when player is ready we wire the UI container.addEventListener('ready', function () { - rmp = window.rmp; playerButtons[0].element = container.querySelector('.rmp-play-pause'); playerButtons[0].element.setAttribute('data-button-id', '0'); document.body.addEventListener('keydown', _onKeyDown); diff --git a/webapp/js/player.js b/webapp/js/player.js index fb93cd5..72f7eeb 100644 --- a/webapp/js/player.js +++ b/webapp/js/player.js @@ -6,8 +6,8 @@ var playerButtons = [ { id: 5, name: 'fastForward', element: null } ]; -var container = document.getElementById('rmpPlayer'); -var currentActiveButtonId, rmp; +var container = document.getElementById('rmp'); +var currentActiveButtonId; var currentActiveButton; var _createEvent = function (eventName, element) { @@ -68,24 +68,24 @@ var _triggerButton = function () { // we deal with 2 kind of remote: Basic Device, Smart Control 2016 var _onKeyDown = function (e) { - var currentTime = rmp.getCurrentTime(); + var currentTime = window.rmp.getCurrentTime(); var keyCode = e.keyCode; - rmp.setControlsVisible(true); + window.rmp.setControlsVisible(true); switch (keyCode) { case 412: // MediaRewind - rmp.seekTo(currentTime - 10000); + window.rmp.seekTo(currentTime - 10000); break; case 417: // MediaFastForward - rmp.seekTo(currentTime + 10000); + window.rmp.seekTo(currentTime + 10000); break; case 415: // MediaPlay - rmp.play(); + window.rmp.play(); break; case 19: // MediaPause - rmp.pause(); + window.rmp.pause(); break; case 413: // MediaStop - rmp.stop(); + window.rmp.stop(); break; case 37: // ArrowLeft case 38: // ArrowUp @@ -103,7 +103,6 @@ var _onKeyDown = function (e) { // when player is ready we wire the UI container.addEventListener('ready', function () { - rmp = window.rmp; playerButtons[0].element = container.querySelector('.rmp-i-fast-rewind'); playerButtons[0].element.setAttribute('data-button-id', '0'); playerButtons[1].element = container.querySelector('.rmp-i-quick-rewind-tv');