In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will introduce in detail "how to pause the playing voice in the development of Mini Program". The content steps are clear and detailed, and the details are handled properly, while the editor updates different knowledge points every day. I hope that this article "how to pause the playing voice in the development of Mini Program" 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.
Pause the voice that is playing. When wx.playVoice is called to play the same file again, the playback starts from the pause. If you want to play from scratch, you need to call wx.stopVoice first.
Sample code:
Wx.startRecord ({success: function (res) {var tempFilePath = res.tempFilePath wx.playVoice ({filePath: tempFilePath}) setTimeout (function () {/ / pause playback wx.pauseVoice ()}, 5000)}) what does Mini Program mean? Mini Program is an application that can be used without download and installation. It can be used immediately by scanning the QR code or searching for it. It is easy to operate and easy to spread. It can realize seven functions, such as message notification, offline scanning code, official account association and so on. 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 pause the voice being played 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.