Note:
Ensure that you grant permissions to the media devices.
Due to web browser
autoplay policy changes,
audio is not automatically played on Safari and Chrome 70 or later.
To solve this problem, call the
stream.play
method and watch the
err object in the
callback parameter.
When the
status property of
err is
"paused",
prompt the user to resume the playback
stream.resume
with a button.
You can find an example solution in this demo.