-
-
\ No newline at end of file
+
diff --git a/examples/video/instream/flowplayer/pb-ve-flowplayer.html b/examples/video/instream/flowplayer/pb-ve-flowplayer.html
index 42ec91f94e..0165121656 100644
--- a/examples/video/instream/flowplayer/pb-ve-flowplayer.html
+++ b/examples/video/instream/flowplayer/pb-ve-flowplayer.html
@@ -201,6 +201,8 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/instream/jwplayer/pb-ve-jwplayer-hosted.html b/examples/video/instream/jwplayer/pb-ve-jwplayer-hosted.html
index a43faf483d..22d5e0bd5d 100644
--- a/examples/video/instream/jwplayer/pb-ve-jwplayer-hosted.html
+++ b/examples/video/instream/jwplayer/pb-ve-jwplayer-hosted.html
@@ -152,7 +152,19 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/instream/jwplayer/pb-ve-jwplayer-platform.html b/examples/video/instream/jwplayer/pb-ve-jwplayer-platform.html
index 2d77f94e26..49e7113955 100644
--- a/examples/video/instream/jwplayer/pb-ve-jwplayer-platform.html
+++ b/examples/video/instream/jwplayer/pb-ve-jwplayer-platform.html
@@ -157,7 +157,21 @@
Place this code in the page body.
// we initialize our player instance, specifying the div to load it into
var playerInstance = jwplayer('myElement1');
- function invokeVideoPlayer(url) {
+ __tcfapi("checkConsent", 2, (hasConsent, success) => {
+ if (hasConsent && success) {
+ hasVideoConsent();
+ } else { // doesn't have consent
+ document.getElementById("myElement1").innerHTML += '(Cookie permissions needed to demo this video player. Update Privacy Settings.)';
+ }
+ }, {
+ data: [{
+ purposeIds: [1] // asking for ability to set cookies
+ }]
+ });
+
+function hasVideoConsent() {
+
+ invokeVideoPlayer= function (url) {
// this calls setup on the player we initialized
// this will use the settings defined in the player we loaded above unless you override them here
playerInstance.setup({
@@ -180,9 +194,9 @@
Place this code in the page body.
invokeVideoPlayer(tempTag);
tempTag = false;
}
-
+}
-
\ No newline at end of file
+
diff --git a/examples/video/instream/jwplayer/pb-ve-jwplayer-playlist.html b/examples/video/instream/jwplayer/pb-ve-jwplayer-playlist.html
index 3fa853d63d..de799c60fd 100644
--- a/examples/video/instream/jwplayer/pb-ve-jwplayer-playlist.html
+++ b/examples/video/instream/jwplayer/pb-ve-jwplayer-playlist.html
@@ -186,6 +186,19 @@
Place this code in the page body.
var adTag = "";
var playerInstance = jwplayer('myElement1');
+ __tcfapi("checkConsent", 2, (hasConsent, success) => {
+ if (hasConsent && success) {
+ hasVideoConsent();
+ } else { // doesn't have consent
+ document.getElementById("myElement1").innerHTML += '(Cookie permissions needed to demo this video player. Update Privacy Settings.)';
+ }
+ }, {
+ data: [{
+ purposeIds: [1] // asking for ability to set cookies
+ }]
+ });
+
+ function hasVideoConsent() {
invokeVideoPlayer = function(url) {
adTag = url;
console.log("MESSAGE: invoking the video player");
@@ -232,8 +245,8 @@
Place this code in the page body.
invokeVideoPlayer(tempTag);
tempTag = false;
}
-
+ }
-
\ No newline at end of file
+
diff --git a/examples/video/instream/kaltura/pb-ve-kaltura.html b/examples/video/instream/kaltura/pb-ve-kaltura.html
index a6262d565a..1291718fb7 100644
--- a/examples/video/instream/kaltura/pb-ve-kaltura.html
+++ b/examples/video/instream/kaltura/pb-ve-kaltura.html
@@ -212,6 +212,8 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/instream/ooyala/pb-ve-ooyala.html b/examples/video/instream/ooyala/pb-ve-ooyala.html
index 30f7b32390..cfba599d4b 100644
--- a/examples/video/instream/ooyala/pb-ve-ooyala.html
+++ b/examples/video/instream/ooyala/pb-ve-ooyala.html
@@ -259,100 +259,109 @@
Place this code in the page body.
-
-
\ No newline at end of file
+
diff --git a/examples/video/instream/radiant/pb-ve-radiant.html b/examples/video/instream/radiant/pb-ve-radiant.html
index c1f9d7278f..110310f278 100644
--- a/examples/video/instream/radiant/pb-ve-radiant.html
+++ b/examples/video/instream/radiant/pb-ve-radiant.html
@@ -273,6 +273,9 @@
Place this code in the page body.
});
});
+ __tcfapi("checkConsent", 2, (hasConsent, success) => {
+ if (hasConsent && success) {
+
/* here we re-define invokeVideoPlayer with Radiant Media Player set-up */
pbApp.invokeVideoPlayer = function (adTagUrl) {
if (pbApp.playerSetup) {
@@ -325,5 +328,13 @@
Place this code in the page body.
}
pbApp.invokeVideoPlayer(pbApp.fallbackAdTagUrl);
}, pbApp.playerSetupTimeout);
+ } else { // doesn't have consent
+ document.getElementById("rmpPlayer").innerHTML += '(Cookie permissions needed to demo this video player. Update Privacy Settings.)';
+ }
+ }, {
+ data: [{
+ purposeIds: [1] // asking for ability to set cookies
+ }]
+ });
diff --git a/examples/video/instream/videojs/pb-ve-videojs.html b/examples/video/instream/videojs/pb-ve-videojs.html
index c4bf3d1bf7..f1679797ec 100644
--- a/examples/video/instream/videojs/pb-ve-videojs.html
+++ b/examples/video/instream/videojs/pb-ve-videojs.html
@@ -23,7 +23,7 @@
{{ page.title }}
-
+
+
Outstream AdUnit below
+
+
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
+
-
\ No newline at end of file
+
diff --git a/examples/video/outstream/pb-ve-outstream-no-server.html b/examples/video/outstream/pb-ve-outstream-no-server.html
index 28f793f34a..b237d54e2c 100644
--- a/examples/video/outstream/pb-ve-outstream-no-server.html
+++ b/examples/video/outstream/pb-ve-outstream-no-server.html
@@ -108,9 +108,19 @@
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
Outstream AdUnit below
+
+
+
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
-
\ No newline at end of file
+
diff --git a/examples/video/server/brid/pbs-ve-brid.html b/examples/video/server/brid/pbs-ve-brid.html
index e397824456..6a03ea1491 100644
--- a/examples/video/server/brid/pbs-ve-brid.html
+++ b/examples/video/server/brid/pbs-ve-brid.html
@@ -167,6 +167,19 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/server/jwplayer/pbs-ve-jwplayer-hosted.html b/examples/video/server/jwplayer/pbs-ve-jwplayer-hosted.html
index 6e9695abf9..7541f8ea35 100644
--- a/examples/video/server/jwplayer/pbs-ve-jwplayer-hosted.html
+++ b/examples/video/server/jwplayer/pbs-ve-jwplayer-hosted.html
@@ -185,6 +185,19 @@
Place this code in the page body.
+ }
+
-
\ No newline at end of file
+
diff --git a/examples/video/server/jwplayer/pbs-ve-jwplayer-jwplayer7.html b/examples/video/server/jwplayer/pbs-ve-jwplayer-jwplayer7.html
index b97f5253f2..41cb675c72 100644
--- a/examples/video/server/jwplayer/pbs-ve-jwplayer-jwplayer7.html
+++ b/examples/video/server/jwplayer/pbs-ve-jwplayer-jwplayer7.html
@@ -175,6 +175,20 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/server/jwplayer/pbs-ve-jwplayer-platform.html b/examples/video/server/jwplayer/pbs-ve-jwplayer-platform.html
index a791d730db..ee23fe90a9 100644
--- a/examples/video/server/jwplayer/pbs-ve-jwplayer-platform.html
+++ b/examples/video/server/jwplayer/pbs-ve-jwplayer-platform.html
@@ -179,7 +179,20 @@
Place this code in the page body.
// we initialize our player instance, specifying the div to load it into
var playerInstance = jwplayer('myElement1');
- function invokeVideoPlayer(url) {
+ __tcfapi("checkConsent", 2, (hasConsent, success) => {
+ if (hasConsent && success) {
+ videoHasConsent();
+ } else { // doesn't have consent
+ document.getElementById("myElement1").innerHTML += '(Cookie permissions needed to demo this video player. Update Privacy Settings.)';
+ }
+ }, {
+ data: [{
+ purposeIds: [1] // asking for ability to set cookies
+ }]
+ });
+
+function videoHasConsent() {
+ invokeVideoPlayer=function (url) {
// this calls setup on the player we initialized
// this will use the settings defined in the player we loaded above unless you override them here
playerInstance.setup({
@@ -202,7 +215,7 @@
Place this code in the page body.
invokeVideoPlayer(tempTag);
tempTag = false;
}
-
+}
-
\ No newline at end of file
+
diff --git a/examples/video/server/jwplayer/pbs-ve-jwplayer-playlist.html b/examples/video/server/jwplayer/pbs-ve-jwplayer-playlist.html
index f2eb304e67..e29d5a5a6e 100644
--- a/examples/video/server/jwplayer/pbs-ve-jwplayer-playlist.html
+++ b/examples/video/server/jwplayer/pbs-ve-jwplayer-playlist.html
@@ -196,6 +196,19 @@
Place this code in the page body.
var adTag = "";
var playerInstance = jwplayer('myElement1');
+ __tcfapi("checkConsent", 2, (hasConsent, success) => {
+ if (hasConsent && success) {
+ videoHasConsent();
+ } else { // doesn't have consent
+ document.getElementById("myElement1").innerHTML += '(Cookie permissions needed to demo this video player. Update Privacy Settings.)';
+ }
+ }, {
+ data: [{
+ purposeIds: [1] // asking for ability to set cookies
+ }]
+ });
+
+function videoHasConsent() {
invokeVideoPlayer = function(url) {
adTag = url;
console.log("MESSAGE: invoking the video player");
@@ -242,7 +255,7 @@
Place this code in the page body.
invokeVideoPlayer(tempTag);
tempTag = false;
}
-
+ }
-
\ No newline at end of file
+
diff --git a/examples/video/server/kaltura/pbs-ve-kaltura.html b/examples/video/server/kaltura/pbs-ve-kaltura.html
index 63f2d0eb13..b09aaee354 100644
--- a/examples/video/server/kaltura/pbs-ve-kaltura.html
+++ b/examples/video/server/kaltura/pbs-ve-kaltura.html
@@ -232,6 +232,18 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/server/ooyala/pbs-ve-ooyala.html b/examples/video/server/ooyala/pbs-ve-ooyala.html
index 7492ec603d..30943afb49 100644
--- a/examples/video/server/ooyala/pbs-ve-ooyala.html
+++ b/examples/video/server/ooyala/pbs-ve-ooyala.html
@@ -275,7 +275,22 @@
Place this code in the page body.
-
\ No newline at end of file
+
diff --git a/examples/video/server/radiant/pbs-ve-radiant.html b/examples/video/server/radiant/pbs-ve-radiant.html
index 1b8f4abe42..2ff222bab2 100644
--- a/examples/video/server/radiant/pbs-ve-radiant.html
+++ b/examples/video/server/radiant/pbs-ve-radiant.html
@@ -295,6 +295,20 @@
Place this code in the page body.
});
});
+ __tcfapi("checkConsent", 2, (hasConsent, success) => {
+ if (hasConsent && success) {
+ videoHasConsent();
+ } else { // doesn't have consent
+ document.getElementById("rmpPlayer").innerHTML += '(Cookie permissions needed to demo this video player. Update Privacy Settings.)';
+ }
+ }, {
+ data: [{
+ vendorId: 10064,
+ purposeIds: [1] // asking for ability to set cookies
+ }]
+ });
+
+ function videoHasConsent() {
/* here we re-define invokeVideoPlayer with Radiant Media Player set-up */
pbApp.invokeVideoPlayer = function (adTagUrl) {
if (pbApp.playerSetup) {
@@ -347,5 +361,6 @@