]> _ Git - fluidbook-html5.git/commitdiff
Brightcove integration
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 22 Jun 2015 13:59:26 +0000 (13:59 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 22 Jun 2015 13:59:26 +0000 (13:59 +0000)
js/libs/fluidbook/fluidbook.js
video/brightcove.html

index 3888646d738e1609116bd73e32dd48360b026269..d66b0a921bbff7767a5ff80de67ae5602fd1b83e 100644 (file)
@@ -938,8 +938,7 @@ Fluidbook.prototype = {
         } else if (service == 'dailymotion') {
             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="./video/brightcove.html?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?pid=' + DATAS.brightcovePlayerId + '&pk=' + encodeURIComponent(DATAS.brightcovePlayerSecret) + '&vid=' + video + '" width="100%" frameborder="0"></iframe>'
         }
         view += '</div>';
         $("#view").append('<div class="mview">' + view + '</div>');
index ee886da953544a1c35d54b5afa9c529ff64e43ce..18177b41e265fd3eb2dd79d9e6489e83ba96e529 100644 (file)
@@ -35,10 +35,11 @@ found at https://accounts.brightcove.com/en/terms-and-conditions/.
        document.write('<param name="bgcolor" value="#000000"/>')\r
        document.write('<param name="width" value="100%"/>')\r
        document.write('<param name="height" value="100%"/>')\r
-       document.write('<param name="playerID" value="' + get.bcpid + '" />')\r
+       document.write('<param name="playerID" value="' + get.pid + '" />')\r
+       document.write('<param name="playerKey" value="' + get.pk + '" />')\r
        document.write('<param name="isVid" value="true"/>')\r
        document.write('<param name="isUI" value="true"/>')\r
        document.write('<param name="dynamicStreaming" value="true"/>');\r
-       document.write('<param name="@videoPlayer" value="' + get.bptid + '" />');\r
+       document.write('<param name="@videoPlayer" value="' + get.vid + '" />');\r
        document.write('</object>');\r
 </script>
\ No newline at end of file