May 18, 2021 WeChat Mini Program Development Document
Starting with base library 1.2.0, this interface is out of maintenance, using wx.getBackgroundAudioManager instead
Control the progress of music playback.
Property | Type | The default | Required | Description |
---|---|---|---|---|
position | number | Is | Music location, in seconds | |
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
wx.seekBackgroundAudio({
position: 30
})