Ensure the viewerframe source and the parent page both use https:// . Problem 3: iFrame Sandboxing If your viewerframe is embedded inside an <iframe> with restrictive attributes, full mode will fail.
<video id="corporateVideo" width="100%"> <source src="presentation.mp4" type="video/mp4"> </video> <script> const video = document.getElementById('corporateVideo'); video.addEventListener('loadedmetadata', () => // Request full mode for the viewerframe container const container = document.querySelector('.viewerframe-container'); if (container.requestFullscreen) container.requestFullscreen().catch(err => console.log( Error attempting full mode: $err.message ); );
https://dam.yourcompany.com/asset/12345?embed=true
It triggers a specific JavaScript API (usually the Fullscreen API) that requests hardware acceleration prioritization and hides the operating system's native cursor. How to Implement "viewerframe mode full" (Technical Guide) Depending on the platform you are using, the syntax for enabling this feature varies. Below are the three most common implementations. 1. Web-Based 3D Viewers (e.g., Three.js / Babylon.js) If you are building a custom 3D configurator, you will usually call a method on the viewer instance.