]> _ Git - fluidbook-html5.git/commitdiff
Add brightcove support
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jun 2015 16:32:13 +0000 (16:32 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jun 2015 16:32:13 +0000 (16:32 +0000)
js/libs/fluidbook/fluidbook.js
video/brightcove.html [new file with mode: 0644]

index 685e600f17e68c35342416c767d99d1977474be3..3888646d738e1609116bd73e32dd48360b026269 100644 (file)
@@ -939,7 +939,7 @@ Fluidbook.prototype = {
             view += '<iframe class="webvideo" type="text/html" width="100%" height="407" src="http://www.dailymotion.com/embed/video/' + video + '?autoplay=1&logo=0&related=0&html5=1" width="100%" frameborder="0"></iframe>'
         } else if (service == 'brightcove') {
             var v = video.split('|');
-            view += '<iframe class="webvideo" type="text/html" width="100%" height="407" src="http://link.brightcove.com/services/player/bcpid' + v[0] + '?bctid=' + v[1] + '&autoStart=false&width=100%25&height=100%25" width="100%" frameborder="0"></iframe>'
+            view += '<iframe class="webvideo" type="text/html" width="100%" height="407" src="./video/brightcove.html?bcpid=' + v[0] + '&bctid=' + v[1] + '&autoStart=false&width=100%25&height=100%25" width="100%" frameborder="0"></iframe>'
         }
         view += '</div>';
         $("#view").append('<div class="mview">' + view + '</div>');
diff --git a/video/brightcove.html b/video/brightcove.html
new file mode 100644 (file)
index 0000000..12cd018
--- /dev/null
@@ -0,0 +1,36 @@
+<html>\r
+<head>\r
+       <style type="text/css">\r
+               * {\r
+                       padding: 0;\r
+                       margin: 0\r
+               }\r
+\r
+               body, object {\r
+                       background-color: #000;\r
+               }\r
+       </style>\r
+</head>\r
+<!-- Start of Brightcove Player -->\r
+<div style="display:none">\r
+</div>\r
+<!--\r
+By use of this code snippet, I agree to the Brightcove Publisher T and C\r
+found at https://accounts.brightcove.com/en/terms-and-conditions/.\r
+-->\r
+<script type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>\r
+<object id="myExperience" class="BrightcoveExperience">\r
+       <param name="bgcolor" value="#000000"/>\r
+       <param name="width" value="100%"/>\r
+       <param name="height" value="100%"/>\r
+       <param name="isVid" value="true"/>\r
+       <param name="isUI" value="true"/>\r
+       <param name="dynamicStreaming" value="true"/>\r
+</object>\r
+<!--\r
+This script tag will cause the Brightcove Players defined above it to be created as soon\r
+as the line is read by the browser. If you wish to have the player instantiated only after\r
+the rest of the HTML is processed and the page load is complete, remove the line.\r
+-->\r
+<script type="text/javascript">brightcove.createExperiences();</script>\r
+<!-- End of Brightcove Player -->\r