]> _ Git - fluidbook-html5.git/commitdiff
Manage action links (share)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jun 2015 16:25:08 +0000 (16:25 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jun 2015 16:25:08 +0000 (16:25 +0000)
Improve sharing popup events

js/libs/fluidbook/fluidbook.js

index 83b1968ae2b16a72f5336d25154efe47ba0c4152..685e600f17e68c35342416c767d99d1977474be3 100644 (file)
@@ -937,6 +937,9 @@ Fluidbook.prototype = {
             view += '<iframe class="webvideo" type="text/html" width="100%" height="407" src="http://www.youtube.com/embed/' + video + '?autoplay=1&modestbranding=1&rel=0&html5=1" frameborder="0"></iframe>';
         } 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="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 += '</div>';
         $("#view").append('<div class="mview">' + view + '</div>');