]> _ Git - fluidbook-html5.git/commitdiff
#fluidbook-workshop : fix youtube not working on html5 version
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Mar 2016 16:07:21 +0000 (16:07 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Mar 2016 16:07:21 +0000 (16:07 +0000)
@0:05

js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.service.js
js/libs/fluidbook/forms/fluidbook.form.bulle.js

index 8ca243d08fc173bc8f45715a529f73c518a3645b..746962615804bbf725a5f7a447edfb15305d990b 100644 (file)
@@ -950,9 +950,9 @@ Fluidbook.prototype = {
         var h = this.resize.getPopupWebVideoHeight();
 
         if (service == 'youtube') {
-            view += '<iframe class="webvideo" type="text/html" width="100%" height="' + h + '" src="http://www.youtube.com/embed/' + video + '?autoplay=1&modestbranding=1&rel=0&html5=1" frameborder="0"></iframe>';
+            view += '<iframe class="webvideo" type="text/html" width="100%" height="' + h + '" 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" width="100%" height="' + h + '" src="http://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" width="100%" height="' + h + '" src="https://www.dailymotion.com/embed/video/' + video + '?autoplay=1&logo=0&related=0&html5=1" width="100%" frameborder="0"></iframe>'
         } else if (service == 'brightcove') {
             view += '<iframe class="webvideo" type="text/html" width="100%" height="' + h + '" src="./video/brightcove.html?pid=' + DATAS.brightcovePlayerId + '&pk=' + encodeURIComponent(DATAS.brightcovePlayerSecret) + '&vid=' + video + '" width="100%" frameborder="0"></iframe>'
         }
index 02b5a8658eb87faa5d889628c4d51a1dabc525e8..4a7f08b03a01879b9f74fa25341a7202b2b39037 100644 (file)
@@ -1,6 +1,6 @@
 function FluidbookService(fluidbook, id) {
     this.fluidbook = fluidbook;
-    this.baseURL = 'http://workshop.fluidbook.com/services/';
+    this.baseURL = 'https://workshop.fluidbook.com/services/';
     this.id = id;
 }
 
index 96b35b69e35034be8a3db024d2b3ba5e58f417f6..b0ed90d4505434424085cf5ac1a4532f2cab36ef 100644 (file)
@@ -57,7 +57,7 @@ FluidbookBulleForm.prototype = {
                $('#formBulle form').submit(function() {
                        fb('submit');
                        $(this).ajaxSubmit({
-                               url: 'http://workshop.fluidbook.com/services/bulle',
+                               url: 'https://workshop.fluidbook.com/services/bulle',
                                success: function(data) {
                                        $this.hide();
                                }