Iframe APP Microphone Access

60 views
Skip to first unread message

Abdelmoumin Mokhtari

unread,
Jul 31, 2024, 3:03:09 PM7/31/24
to DrChrono API Developers
Hello,

I am working on app that requires microphone access I managed to launch the iframe inside the clinical notes, but there is no access to the microphones, how can we achieve this?

Thank you

Anton

unread,
Jul 31, 2024, 3:04:05 PM7/31/24
to DrChrono API Developers
This is likely a browser configuration setting that is needed.

Example:

Change a site's camera & microphone permissions
  1. Open Chrome .
  2. At the top right, click More. Settings.
  3. Click Privacy and security Site settings. Camera or Microphone.
  4. Select the option you want as your default setting. Review your blocked and allowed sites.
https://support.google.com/chrome/answer/2693767?hl=en&co=GENIE.Platform%3DDesktop

Thanks,
Anton

Abdelmoumin Mokhtari

unread,
Aug 1, 2024, 11:30:38 AM8/1/24
to DrChrono API Developers


Hi Anton,
Thank you for your reply, as of my understanding to be able to access the microphone should be allowed in iframe tag like this :

<iframe src="https://example.com" allow="camera *;microphone *"></iframe>
but when I inspect the element i can't see that is allowed.
and I am getting the following error :
 Error in accessing audio device: DOMException: Permission denied
 Error in accessing audio device: DOMException: Permission denied

Best regards,

Abdelmoumin Mokhtari

unread,
Aug 1, 2024, 11:30:38 AM8/1/24
to drchro...@googlegroups.com
Hi Anton,

Thank you for your reply, as of my understanding to be able to access the microphone should be allowed in iframe tag like this :
<!--Allow camera and microphone access within the context of this iframe-->

<iframe src="https://example.com" allow="camera *;microphone *"></iframe>

but when I inspect the element i can't see that is allowed.
and I am getting the following error :
 Error in accessing audio device: DOMException: Permission denied
 Error in accessing audio device: DOMException: Permission denied

Best regards,
Abdel

--
You received this message because you are subscribed to the Google Groups "DrChrono API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drchrono-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drchrono-api/c1f08327-8ebf-4924-9822-723e41284286n%40googlegroups.com.

assaa...@drchrono.com

unread,
Aug 1, 2024, 12:51:58 PM8/1/24
to DrChrono API Developers
Hi Abdel,

Our permissions-policy headers do not include microphone or camera access. Since the parent webpage (drchrono.com) does not include those permissions, we don't allow it within our iframe. At this time, the workaround is to modify the user flow and have your page redirect the user to a different window or tab. This way you won't be subjected to our iframe restriction.

I will reach out to our team to see if we can add microphone and camera to our permissions-policy. I will let you know what they decide.

Best,
Assaad

Abdelmoumin Mokhtari

unread,
Aug 1, 2024, 1:20:15 PM8/1/24
to drchro...@googlegroups.com
Hi Assaad,

Thank you for the clarification, as for my understanding is from the iframe to open my app in a different window or tab, which makes sense to do, I be looking forward to hearing from you if there is any possibility through the iframe, otherwise we will continue now and proceed with the workaround you provided.

Best regards,
Abdel

Edmilson100%

unread,
Aug 6, 2024, 3:42:29 PM8/6/24
to drchro...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages