I am building an application with BuildFire.JS, and my app uses WebRTC. I look through how BuildFire works, and it embeds the Widget inside an iFrame when the app is being displayed in the plug-in interface. The IFrame looks as such:
<iframe id="widget" style="height: 100%; width: 100%; padding-top: 49px;" ng-style="{'padding-top': showNavigationBar ? '49px' : '0px' }" class="pluginFrame" seamless="" allowfullscreen="" sandbox="allow-scripts allow-forms allow-same-origin allow-popups" ng-src="http://localhost:8080/widget/index.html?fid=widget&appcontext=%xxxxxxxx"></iframe>
For my WebRTC components work, I need the iframe in the plugin interface to have the following options:
<iframe allow="camera; microphone" ></iframe>
Otherwise the camera will be blocked. How can I added to the IFrame in BuildJS to allow access to the camera and mic?