Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat Small Program API Background Audio Background Audio Manager


May 18, 2021 WeChat Mini Program Development Document


Table of contents


BackgroundAudioManager wx.getBackgroundAudioManager()

Base library 1.2.0 starts to support, and low versions need to be compatible.

Get a globally unique background audio manager. T he small program cut into the background and can continue playing if the audio is playing. However, the background state cannot manipulate the playback state of the audio by calling the API.

Starting with WeChat client version 6.7.2, if you need to continue playing audio after the small program is cut in the background, you need to configure the RequiredBackgroundModes property in app.json. The development and experience versions are available directly and the official version is subject to review.

Returns a value

BackgroundAudioManager