Forum Discussion
full screen video button?
Hi Will,
You can try to add the code below in the HEAD section of the loaded content. It will add those attributes to the parent Iframe. This worked for me while using SL2.
I will test the SL360 output on a Xyleme server soon and see if that works (out of the box). When it doesnt, I will also try something like this maybe.
<script type="text/javascript">
//adding these attrributes allows the browser to use full-screen
var frameEl = window.frameElement;
if (frameEl) {
window.frameElement.setAttribute("allowFullScreen", "allowFullScreen");
window.frameElement.setAttribute("webkitAllowFullScreen", "webkitAllowFullScreen");
window.frameElement.setAttribute("mozAllowFullScreen", "mozAllowFullScreen");
window.frameElement.setAttribute("sandbox", "allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-top-navigation");
}
</script>
Related Content
- 12 months ago
- 10 months ago
- 14 days ago