You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are calling play on the stream at the earliest possible moment, it may be causing this. Based on this thread, chaining a promise after your play call may fix it.
@fredguth , This issue will be seen in current version of chrome > 50. It doesn't hjappen in Firefox. I'd suggest to create a new Audio element each time dynamically for ring tone playback or for playing remote stream.
Have a common js function which will make sure it stops the play request of existing audio element and removes it. then have a new audio element created and attach the src with stream or URL
Activity
james-criscuolo commentedon May 5, 2016
Hi @fredguth,
If you are calling
playon the stream at the earliest possible moment, it may be causing this. Based on this thread, chaining a promise after yourplaycall may fix it.James
svarunan commentedon Jun 21, 2016
@fredguth , This issue will be seen in current version of chrome > 50. It doesn't hjappen in Firefox. I'd suggest to create a new Audio element each time dynamically for ring tone playback or for playing remote stream.
Have a common js function which will make sure it stops the play request of existing audio element and removes it. then have a new audio element created and attach the src with stream or URL
fredguth commentedon Jun 30, 2016
Thanks @james-criscuolo and @svarunan.
Payetus commentedon Jul 21, 2016
@james-criscuolo how would you chain promises can you put a snippet