Web SDK - RainwayStream.resumeAudio()

Home > rainway-sdk > RainwayStream > resumeAudio

RainwayStream.resumeAudio() method

Some browsers don't allow pages to play audio unless initiated by a user gesture.

This function tries to resume stream audio. You may call it in response to a suitable user gesture (e.g. body onclick). There is automatically an onclick handler like this on the stream container element.


resumeAudio(): void;