ringcentral-embeddable icon indicating copy to clipboard operation
ringcentral-embeddable copied to clipboard

Refreshing a window with an i-frame holding the embeddable mutes sound.

Open tmLoyally opened this issue 3 years ago • 2 comments

The RC embedable works fine until someone refreshes their webpage, which mutes the audio, making users unable to hear the ringing for incomming calls. The audio will come back after the user has had some interaction with the embeddable, like clicking on a button or starting a call.

It seems to be related to the audio policies used by Chrome (and other browsers): https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio

Adding an allow="autoplay" to the I-frame html is not an option because we integrate the embedable into 3th party environments.

tmLoyally avatar Mar 23 '21 07:03 tmLoyally

@tmLoyally Good point. I will add allow="autoplay" into the widget iframe. And I am not sure that you mention:

Adding an allow="autoplay" to the I-frame html is not an option because we integrate the embedable into 3th party environments.

Can you give an example?

embbnux avatar Mar 23 '21 07:03 embbnux

@tmLoyally I tested iframe with "allow=autoplay; microphone". It can work well at Chrome. For Firefox, user still need to have interaction at top web page. For Safari, autoplay don't work well.

embbnux avatar Mar 23 '21 09:03 embbnux

Closed by inactive

embbnux avatar Jun 20 '24 05:06 embbnux