当前位置:网站首页>Realize video call and interactive live broadcast in the applet
Realize video call and interactive live broadcast in the applet
2022-06-26 04:19:00 【Finbird】
lately , The live broadcast room of New Oriental online is selected to bring goods in bilingual 、 Features such as teaching in fun, etc. quickly come out of the circle . Selected by Dongfang for live broadcast “ Coil powder ” Direct call from ,“ Escaped via 、 Li Jiaqi , But I didn't avoid dongyuhui ”. In recent years , video 、 Live broadcast e-commerce is growing rapidly , The main reason is video 、 The live broadcast content can carry more abundant information than the graphic content 、 Higher user acceptance . As the penetration rate of live broadcast continues to deepen , Already with entertainment 、 Study 、 shopping 、 More and more scenes such as work are integrated together . In the second half of the development of the Internet , With the layout of Internet platform and the development of vertical field application , Live broadcast industry will usher in more diversified application scenarios , The scale of potential users will continue to expand .

In the live broadcasting industry in full swing , More and more enterprises choose to develop their own live broadcasting platform , Or hope in the original app Medium and upper shelves audio and video 、 Live broadcast function . How difficult is it to develop a live broadcast function ?
Live broadcast is difficult : If you want to make the live broadcast from scratch , The technical difficulty is still very high , Because there are many technical difficulties in live broadcasting , video / Audio processing , Graph processing , video / Audio compression ,CDN distribution , Instant messaging and other technologies , Every technology is very professional .
Live broadcast is easy : The good news is that the current giants in various fields , A lot of awesome frameworks have been encapsulated , We just need to use the framework that others have written , Can quickly build a live broadcast app, It's the legendary programming on the shoulders of Daniel .
How can we simply and conveniently build a live broadcast platform ? The following is used by developers in FinClip Applet Examples of video call and interactive live broadcast in :
Prepare the development environment
1、 Please ensure that wechat developer tools have been installed locally
2、 Please make sure there is a support live-pusher and live-player Wechat public platform account of the component . Only certified enterprise accounts in specific industries can use these two components . View details FinClip file center :https://www.finclip.com/mop/document/develop/component/media.html#live-pusher
3、 Please ensure that in the development and setting of wechat public platform account , Give the following domain name request permission :
- https://miniapp.agoraio.cn
- https://uni-webcollector.agora.io
- wss://miniapp.agoraio.cn
4、 If you use 1.1.2 BETA Later version , You need to add the following additional domain names
- https://miniapp-1.agoraio.cn
- https://miniapp-2.agoraio.cn
- https://miniapp-3.agoraio.cn
- https://miniapp-4.agoraio.cn
Run the sample program
stay FinClip And Agora.io Registered account , And create your own test project , obtain App ID. If you need to get Token or Channel Key, Please enable App Certificate
Download the sample program on this page
open utils Folder , stay config.js Fill the file with the obtained App ID:
const APPID = 'abcdefg'download Agora Miniapp SDK, And will SDK Rename as “mini-app-sdk-production.js"
Will be renamed "mini-app-sdk-production.js" The file is saved in the... Of this sample program lib Under the folder
Start the wechat developer tool and import the sample program
Enter channel name , Join the channel . Invite your friends to join the same channel , You can start video exchange .
The network of Native SDK It can communicate with applet directly .
About Token/Dynamic Key
If enabled App Certificate, You also need to generate on the server side Token or Dynamic Key Used for authentication . The generated Token or Dynamic Key Fill in the following methods :
//... client.join(<your key/access token here>, channel, uid, () => { //...About how to generate Token or Dynamic Key See Token or Dynamic Key.
边栏推荐
- Install dbeaver and connect Clickhouse
- After a test of 25K bytes, I really saw the basic ceiling
- Unity移动端游戏性能优化简谱之 以引擎模块为划分的CPU耗时调优
- 线程同步之读写锁
- Your requirements could not be resolved
- SQL related knowledge - constraints
- 捕获数据包(Wireshark)
- Read / write lock for thread synchronization
- How to use EEPROM in 51 Single Chip Microcomputer?
- Double buffer technology asynchronous log system
猜你喜欢

Unity mobile game performance optimization spectrum CPU time-consuming optimization divided by engine modules

Oracle technology sharing Oracle 19.14 upgrade 19.15

解析JSON接口并批量插入到数据库中

College C language final exam · multiple choice questions · summary notes of mistakes and difficulties

What should I do if the 51 SCM board cannot find the device in keil

CTF PHP audit bypasses filtering learning from topics

Construction of art NFT trading platform | NFT mall

修改Oracle连接数

Part 4: drawing quadrilateral

小程序中实现视频通话及互动直播功能
随机推荐
[Qunhui] import certificate
六、项目实战---识别猫和狗
Microsoft prohibits Russian users from downloading and installing win10/11
线程同步之读写锁
Install cenos in the virtual machine
I/o virtualization technology - vfio
[Qunhui] command line acme SH automatically apply for domain name certificate
List of provinces, cities and counties in China
Analysis report on development status and future trend of CMOS image sensor industry in China 2022 ~ 2028
Clickhouse stand alone installation
线程同步之互斥量(互斥锁)
Report on operation mode and future development trend of China's refining and chemical market 2022-2028
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
使用Jsoup提取接口中的图片
Lua grammar explanation
How does virtual box virtual machine software accelerate the network speed in the virtual system?
Analysis of updatechild principle of widget update mechanism of fluent
Report on demand situation and development trend of China's OTC industry from 2022 to 2028
I/o virtualization technology - UIO framework
BSC 及HT 等链的NFT 创造及绑定图片教程