Forum Discussion
Allowing microphone access on embedded web app
Hi DanAdams-9ad8e6,
Happy to help!
You can try modifying your iframe to add the allow tags and specify the exact permissions you need. Example:
<iframe src="..." allow=”autoplay; microphone”></iframe>
Hope this helps!
Hi, I am experiencing a similar issue. I have a web app that I am running through the web object option in Storyline. When I publish and run in preview I'm getting this message.
"The security policies of this page don't allow using the microphone." I'm unsure if this is related to the page or to Storyline and would appreciate some advice.
- LucianaPiazza10 months agoStaff
Hello DannyMcGee-3972,
Thanks for reaching out regarding the Audio settings message you are receiving when trying to access the microphone. This may be related to the security settings of the hosting website or the browser rather than Storyline itself. I have a few clarifying questions to better understand your setup!
- What web app are you currently using? Can you natively access the microphone for this site when viewing it in a browser window?
- Have you tried modifying the iFrame as my colleague Jose suggested earlier in this discussion?
- From your screenshot, I understand you are using Edge. Do you experience this behavior in another browser? I'm curious if it is browser-specific.
As a first step, here are a few things you can check:- Secure Hosting: Ensure your web app is hosted on a secure website using `https://`. Modern browsers block mixed content, so if your web app uses `http://`, it might be causing the issue.
- Browser Permissions: Check the browser settings to ensure that microphone access is allowed for the site where your web app is hosted.
- iFrame Restrictions: If your web app is embedded in an iframe, ensure the hosting website allows it. Some sites have `X-Frame-Options` set to `SAMEORIGIN` or `DENY`, which can prevent the web object from functioning properly.
If you're still having trouble, we'd be happy to examine your file more closely. You can upload your .story file to this thread or privately in a support case.
Looking forward to hearing from you!
- What web app are you currently using? Can you natively access the microphone for this site when viewing it in a browser window?
- MichaelZ12 days agoCommunity Member
I've been working on exactly this problem - enabling microphone access for embedded web apps in Storyline 360.
The core issue is that Storyline's Web Object creates an iframe without the allow attribute, so the browser blocks microphone access. The fix is a JavaScript trigger that finds the iframe after it loads and adds the permissions:
setTimeout(function() { var iframe = document.querySelector('iframe[src*="YOUR_DOMAIN"]'); if (iframe) { iframe.setAttribute('allow', 'microphone; camera; autoplay'); console.log('Permissions enabled'); } }, 500);Set this as an Execute JavaScript trigger on Timeline Starts for the slide containing the Web Object. Replace YOUR_DOMAIN with whatever domain your embedded app is on.
A few things to be aware of:
- This works in published output and Storyline preview, but not in Review 360 (Review 360 has its own iframe restrictions)
- The host page must be served over HTTPS for the browser to allow microphone access
- If the iframe takes longer to load, increase the timeout from 500 to 1000 or 2000
- Test in Chrome, Firefox, Edge — they all handle this slightly differently
I wrote up the full implementation including troubleshooting common issues here: https://www.zenobits.co.uk/docs/zenobits-storyline-integration-guide (see the microphone permissions section specifically)
Related Content
- 1 year ago
- 8 months ago