Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Web Playback SDK not playing sound on first invocation of Play API

Solved!

Web Playback SDK not playing sound on first invocation of Play API

When invoking the Play API to start playing, the Web Playback will receive play status OK but no sound will be played.
After invoking the Pause API and then the Play API to resume playing, then the play will start from beginning and with sound.
The error seems to be happening only when a new device id is generated,
the Web Playback is working well when using a device id for which there has already been at least one play/pause/resume sequence.
If needed, I can provide the sample calls with CURL to reproduce the issue.

Screenshot 2023-02-01 at 12.24.49.png
Reply

Accepted Solutions
6 Replies

Having a closer look on the web browser (Chrome) console, the issue seems to be related to the following error:


The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

The Web Playback connect method is invoked on load of the page, hence before user interactions with the page itself...any suggestions on when to call connect or on how to the prevent this error?

Marked as solution

Thanks for updating the thread with the solution you found, @muusic3 ๐Ÿ™‚

Thank you, this resolved a similar issue I was having on my app. 

@Squall75 beware that this might still not working for Safari, in case, check this out too: 

Now it is not working in:

MacOS: Ventura 13.3.1+

IOS: 16.4.1+

Suggested posts

Type a product name