diff --git a/src/canvas/view/FrameView.js b/src/canvas/view/FrameView.js index 7e9a9acb4..3ab671a7f 100644 --- a/src/canvas/view/FrameView.js +++ b/src/canvas/view/FrameView.js @@ -8,7 +8,8 @@ function(Backbone) { tagName: 'iframe', attributes: { - src: 'about:blank' + src: 'about:blank', + allowfullscreen: 'allowfullscreen' }, initialize: function(o) { @@ -51,4 +52,4 @@ function(Backbone) { }, }); -}); \ No newline at end of file +}); diff --git a/src/dom_components/model/ComponentVideo.js b/src/dom_components/model/ComponentVideo.js index 4e4a0d932..8ebbb5511 100644 --- a/src/dom_components/model/ComponentVideo.js +++ b/src/dom_components/model/ComponentVideo.js @@ -20,6 +20,7 @@ define(['./ComponentImage'], controls: 1, color: '', sources: [], + attributes:{allowfullscreen:'allowfullscreen'} }), initialize: function(o, opt) { diff --git a/src/dom_components/view/ComponentVideoView.js b/src/dom_components/view/ComponentVideoView.js index 156faf3f5..7141b326f 100644 --- a/src/dom_components/view/ComponentVideoView.js +++ b/src/dom_components/view/ComponentVideoView.js @@ -87,6 +87,7 @@ define(['backbone', './ComponentImageView'], var el = document.createElement('iframe'); el.src = this.model.getYoutubeSrc(); el.frameBorder = 0; + el.setAttribute('allowfullscreen', true); this.initVideoEl(el); return el; }, @@ -95,6 +96,7 @@ define(['backbone', './ComponentImageView'], var el = document.createElement('iframe'); el.src = this.model.getVimeoSrc(); el.frameBorder = 0; + el.setAttribute('allowfullscreen', true); this.initVideoEl(el); return el; },