当前位置:网站首页>Tiktok practice ~ sharing module ~ generate short video QR code
Tiktok practice ~ sharing module ~ generate short video QR code
2022-06-26 19:05: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 uQRCode
Plug in links :https://ext.dcloud.net.cn/plugin?id=1287
Component case :
2.3. Plug ins involve components

2.4. Component modification
uQRCode be based on uqrcode.js Realization
gotoQRCode() {
uni.navigateTo({
url: "/pages/qrcode/qrcode?vlogId=" + this.thisVlogId
})
},
onReady() {
var vlogId = this.vlogId;
var content = {
type: "vlog",
content: vlogId
};
var contentStr = JSON.stringify(content);
uQRCode.make({
canvasId: 'qrcode',
componentInstance: this,
size: 170,
margin: 10,
text: contentStr,
backgroundColor: '#ffffff',
foregroundColor: '#0f0827',
fileType: 'png',
errorCorrectLevel: uQRCode.errorCorrectLevel.H
})
.then(res => {
})
},
2.5. Realization principle
- 1. In fact, generating short video QR code is the release of short video ID
- 2. When wechat scanning, only the generated QR code will be displayed type and content Written content , Because there is no other operation on the text .
- 3. Let's Tiktok app When you scan the QR code , I did the following things :
- 3.1. The first thing is to parse the text messages behind the QR code just like wechat scanning
- 3.2. Get short video publishing ID after , Calling the backend short video details api Interface
- 3.3. After calling the interface , There are short video information to video processing for short video details ( It's just a preview of a short video ), The principle is the same as that of the search page .
The implementation principle flow chart will be supplemented later , Let us know in detail
3、 ... and 、 Appreciation of works
3.1. Generate short video QR code

3.2. Wechat scanning

3.3. Tiktok scanning


边栏推荐
- SSO微服务工程中用户行为日志的记录
- 基于tensorflow的手写数字识别
- Tree array
- Boot指标监测
- Pinda general permission system (day 1~day 2)
- mysql的充值问题
- Image binarization
- Conditional compilation in precompiling instructions
- Publish message publishers and subscribe message subscribers of ROS
- 8VC Venture Cup 2017 - Final Round C. Nikita and stack
猜你喜欢

Clion compiling catkin_ WS (short for ROS workspace package) loads cmakelists Txt problems

Yujun product methodology

uni-app使用canvas绘制二维码

Convex hull problem

Web resource preloading - production environment practice

LeetCode 128最长连续序列

(multi threading knowledge points that must be mastered) understand threads, create threads, common methods and properties of using threads, and the meaning of thread state and state transition

一些基本错误

Refresh the strong pointer assignment problem in the HP-UX system of Sanguan

Deep learning: numpy
随机推荐
零时科技 | 智能合约安全系列文章之反编译篇
IK word breaker
find_ path、find_ Library memo
Redis single sign on system + voting system
IK分词器
The cross compilation environment appears So link file not found problem
黑客用机器学习发动攻击的九种方法
問題解决:虛擬機無法複制粘貼文件
Some basic mistakes
To: seek truth from facts
Analysis on development technology of NFT meta universe chain game system
元宇宙链游开发案例版 NFT元宇宙链游系统开发技术分析
The goal you specified requires a project to execute but there is no POM
(几何) 凸包问题
DVD digital universal disc
Pinda general permission system (day 1~day 2)
9. Intelligent transportation project (2)
Deep learning: numpy
软考备战多媒体系统
Request method 'POST' not supported