In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 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 use wx.choosevideo in Mini Program", the content steps are clear and detailed, and the details are handled properly, while the editor will update different knowledge points every day, I hope this article "how to use wx.choosevideo in Mini Program" can give you unexpected gains, please follow the editor's ideas slowly in depth, the specific content is as follows, to harvest new knowledge together.
Shoot a video or select a video from a mobile photo album and return to the temporary file path of the video.
OBJECT parameter description:
Parameter type is required to indicate whether the minimum version of sourceTypeStringArray album selects video from the album, and camera uses a camera to shoot. The default is: ['album',' camera'] compressedBoolead whether to compress the selected video source file. The default is true, and the maximum shooting time (in seconds) of the video needs to be compressed or not filmed by 1.6.0maxDurationNumber. The maximum support for 60 seconds is whether the cameraString is set to the front or rear camera by default. Front: front, back: post. The default backsuccessFunction No API is called successfully, and the temporary file path of the video file is returned. For more information, please see the returned parameters indicating that failFunction API calls failed callback function completeFunction No API call ends callback function (both successful and failed calls will be executed)
Success return parameter description:
Parameter description tempFilePath temporary file path of selected video duration length of selected video size amount of data size height returns the length width of the selected video returns the width of the selected video
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.
Sample code:
What does it mean to get video Mini Program? Mini Program is an application that can be used without download and 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 scanning, 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 here. I hope you have the most profound experience from the practical level on the key issue of "how to use wx.choosevideo in Mini Program". The specific use also requires everyone to practice and use it before you can understand it. 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.