]> _ Git - fluidbook-html5.git/commitdiff
Add Vimeo support for web video popups. WIP #1449 @0:15
authorStephen Cameron <stephen@cubedesigners.com>
Tue, 6 Jun 2017 13:04:53 +0000 (15:04 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Tue, 6 Jun 2017 13:04:53 +0000 (15:04 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 2932b6d6e8fa086a30d3eb055499f32c6e34f7ff..0f80560d9f541ef89688b08a84adfe9a7e50163a 100644 (file)
@@ -244,7 +244,9 @@ FluidbookMenu.prototype = {
         if (service == 'youtube') {
             view += '<iframe class="webvideo" type="text/html" src="https://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" src="https://www.dailymotion.com/embed/video/' + video + '?autoplay=1&logo=0&related=0&html5=1" width="100%" frameborder="0"></iframe>'
+            view += '<iframe class="webvideo" type="text/html" src="https://www.dailymotion.com/embed/video/' + video + '?autoplay=1&logo=0&related=0&html5=1" width="100%" frameborder="0"></iframe>';
+        } else if (service == 'vimeo') {
+            view += '<iframe class="webvideo" type="text/html" src="https://player.vimeo.com/video/' + video + '?autoplay=1" width="100%" frameborder="0"></iframe>';
         } else if (service == 'brightcove') {
             view += '<iframe class="webvideo" type="text/html" src="./video/brightcove.html?pid=' + DATAS.brightcovePlayerId + '&pk=' + encodeURIComponent(DATAS.brightcovePlayerSecret) + '&vid=' + video + '" width="100%" frameborder="0"></iframe>'
         }