当前位置:网站首页>Tiktok practice ~ sharing module ~ short video download (save to photo album)
Tiktok practice ~ sharing module ~ short video download (save to photo album)
2022-06-26 19:06:00 【gblfy】

One 、 Visible range
Save to album 、 Replication link 、 QR code It is all done by the front end
1. Publish your own short video
The short video released by myself will have “ Save to album 、 Replication link 、 QR code 、 Become private ”
2. Others post short videos
Others post short videos , I can only see “ Save to album 、 Replication link 、 QR code ”
Two 、 Source code analysis
2.1. Bottom window popup
<view>
<!-- Bottom window popup -->
<uni-popup ref="comment" type="comment">
<uni-popup-comments :thisVlogerId="thisVlogerId" :thisVlogId="thisVlogId"></uni-popup-comments>
</uni-popup>
<uni-popup ref="share" background-color="#fff" type="share">
<uni-popup-share :thisVlogerId="thisVlogerId" :thisVlogId="thisVlogId" :vlogUrl="thisVlog.url"
:isPrivate="thisVlog.isPrivate"></uni-popup-share>
</uni-popup>
</view>
2.2. Implementation components uni-popup Pop-up layer
Plug in links :https://ext.dcloud.net.cn/plugin?id=329
Component case :
2.3. Plug ins involve components
Plugins include 4 Components :“uni-popup-comments、uni-popup-dialog、uni-popup-message、uni-popup-share”
2.4. Component modification
uni-popup-share
2.5. pivotal api
Official website api:
uni.uploadFile(OBJECT)
uni.saveVideoToPhotosAlbum
Involving key api:uni.downloadFile、uni.saveVideoToPhotosAlbum

3、 ... and 、 Appreciation of works
3.1. Post your own video

3.2. Others post videos

3.3. Save short video

边栏推荐
猜你喜欢
随机推荐
The goal you specified requires a project to execute but there is no POM
抖音实战~分享模块~生成短视频二维码
SSO微服务工程中用户行为日志的记录
Why don't I recommend going to sap training institution for training?
IK分词器
Boyun, standing at the forefront of China's container industry
The king of Internet of things protocol: mqtt
威胁猎人必备的六个威胁追踪工具
Clion编译catkin_ws(ROS工作空间包的简称)加载CMakeLists.txt出现的问题
find_ path、find_ Library memo
Pinda general permission system (day 1~day 2)
Project practice 5: build elk log collection system
【Kubernetes】Kubernetes 原理剖析与实战应用(更新中)
微服务版单点登陆系统(SSO)
Example of using QPushButton style (and method of adding drop-down menu to button SetMenu)
Vscode 基础必备 常用插件
Request method 'POST' not supported
redis 基础知识
Button how to dynamically set drawablebottom (setcomposunddrawables is invalid)
DVD digital universal disc









