In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will give you a detailed introduction to "how to use the background player to play music in the development of Mini Program". The content steps are clear and detailed, and the details are handled properly, and the editor updates different knowledge points every day. I hope this article "how to use the background player to play music in Mini Program development" will give you unexpected gains. Please follow the editor's ideas slowly and deeply. The details are as follows. Let's go and gain new knowledge.
Using a background player to play music, for Wechat clients, there can only be one background music playing at the same time. When the user leaves Mini Program, the music will stop playing; when the user clicks "Show at the top of chat", the music will not stop playing; when the user occupies the music player on other Mini Program, the music in the original Mini Program will stop playing.
OBJECT parameter description
Parameter type required indicates that dataUrlString is a music link. Currently supported formats include M4a, aac, mp3, wavtitleString No Music title coverImgUrlString No cover URLsuccessFunction No API call successful callback function failFunction No API call failed callback function completeFunction No API call end callback function (call will be executed if it succeeds or fails)
Sample code
What does wx.playBackgroundAudio ({dataUrl:', title:', coverImgUrl:'}) mean by Mini Program? Mini Program is an application that can be used without download or installation. It can be used immediately by scanning a QR code or searching it. It is easy to operate and easy to spread. It can achieve seven major functions, such as message notification, offline code scan, and official account association. It is based on Wechat, similar to APP. You can use it whenever you want. After using it, you will leave without taking up memory.
Thank you for reading this. The editor hopes that you will have the most profound experience from the practical level on the key issue of "how to use background players to play music in Mini Program development". The specific use of the situation also requires everyone to practice and use in order to understand, if you want to read more related articles, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.