]> _ Git - fluidbook-html5.git/commitdiff
Add brightcove support
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jun 2015 16:41:11 +0000 (16:41 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jun 2015 16:41:11 +0000 (16:41 +0000)
video/brightcove.html

index 12cd01856f8967199c9ae1b98e30f54b13bc7369..ee886da953544a1c35d54b5afa9c529ff64e43ce 100644 (file)
 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
+<script type="text/javascript">\r
+       function parseGet() {\r
+               var couples = window.location.search.substr(1).split('&');\r
+               var res = new Array();\r
+               var couple = new Array();\r
+               for (var i = 0; i < couples.length; i++) {\r
+                       couple = couples[i].split('=');\r
+                       res[couple[0]] = couple[1];\r
+               }\r
+               return res;\r
+       }\r
+       var get = parseGet();\r
+       document.write('<script type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"><' + '/script>');\r
+       document.write('<object id="myExperience" class="BrightcoveExperience">')\r
+       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="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('</object>');\r
+</script>
\ No newline at end of file