Commit 51e0fb29 authored by Robert Knight's avatar Robert Knight

Enable video embeds to be shown fullscreen

The 'allowfullscreen' attribute must be set on both
the embed's <iframe> and the parent sidebar <iframe>
when the embed's main script is loaded to enable
fullscreen support.
parent 1a3d7e0d
......@@ -12,6 +12,8 @@ module.exports = class Host extends Guest
# Create the iframe
app = $('<iframe></iframe>')
.attr('name', 'hyp_sidebar_frame')
# enable media in annotations to be shown fullscreen
.attr('allowfullscreen', '')
.attr('seamless', '')
.attr('src', options.app)
......
......@@ -8,6 +8,7 @@ function iframe(src) {
iframe_.src = src;
iframe_.classList.add('annotation-media-embed');
iframe_.setAttribute('frameborder', '0');
iframe_.setAttribute('allowfullscreen', '');
return iframe_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment