In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to start recording in WeChat Mini Programs. The content is easy to understand and clear. I hope it can help you solve your doubts. Now let the editor take you to study and learn the article "how to start recording in WeChat Mini Programs".
Wx.startRecord (OBJECT)
Start recording. Automatically end the recording when you actively call wx.stopRecord, or when the recording lasts for more than 1 minute, and return the temporary file path of the recording file. This API cannot be called when the user leaves Mini Program.
OBJECT parameter description:
Parameter type is required to indicate whether successFunction is called after recording is successful, and the temporary file path of the recording file is returned. Res= {tempFilePath: "temporary path of recording file"} failFunction No API calls failed callback function completeFunction No API calls the finished callback function (both successful and failed calls will be executed)
Note: the temporary path of the file can be used normally during the startup of Mini Program. For lasting preservation, you need to call wx.saveFile actively and access it only when Mini Program is started next time.
Success return parameter description:
Parameter describes the temporary path of the tempFilePath recording file wx.stopRecord ()
Call actively to stop recording.
Sample code:
Wx.starRecord ({success:function (res) {var tempFilePath = res.tempFilePath}, fail:function (res) {/ / recording failure}}) setTimeout (function () {/ / end recording wx.stopRecord ()}, 10000) 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.
The above is about "how to start recording in WeChat Mini Programs". If this article is helpful to you and think it is well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more attention to 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.