当前位置:网站首页>How to realize video call and live interaction in a small program when live broadcasting is so popular?
How to realize video call and live interaction in a small program when live broadcasting is so popular?
2022-06-23 06:43:00 【speedoooo】
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 Document center : Media components | Applet development help center _ Applet FAQs _ Introduction to applet -FinClip
3、 Please ensure that in the development and setting of wechat public platform account , Give the following domain name request permission :
wss://miniapp.agoraio.cn
4、 If you use 1.1.2 BETA Later version , You need to add the following additional domain names
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, () => { //... |
边栏推荐
- idea的去除转义的复制粘贴
- Give up Visio, this drawing tool is really fragrant!
- 将TensorFlow1.x改写为pytorch
- C language removes line breaks (or other characters) at the end of strings
- Mysql5.6 (5.7-8) is based on shardingsphere5.1.1 sharding proxy mode. Read / write separation
- Link of Baidu URL Parameters? Recherche sur le chiffrement et le décryptage des paramètres d'URL (exemple de Code)
- haas506 2.0开发教程-高级组件库-modem.sim(仅支持2.2以上版本)
- 如何查看本机IP
- 如何实现与FDA保持邮件通信安全加密?
- 页面嵌入iframe 点击浏览器后退问题
猜你喜欢

Programmers' real ideas | daily anecdotes

索引——MySQL

二叉树的遍历及相关知识
Link of Baidu URL parameter? Research on URL parameter encryption and decryption (code example)

vs+qt项目转qt creator

Haas 506 2.0 Tutoriel de développement - bibliothèque de composants avancés - modem. SMS (ne prend en charge que les versions supérieures à 2,2)

解析创客教育中的个性化学习进度

解读创客教育中的团结协作精神

图解 Google V8 # 17:消息队列:V8是怎么实现回调函数的?

华为软件测试笔试真题之变态逻辑推理题
随机推荐
记一次GLIB2.14升级GLIB2.18的记录以及其中的步骤原理
C language obtains second, millisecond, subtle and nanosecond timestamps
利用adb 调试设备串口信息的一个小方法
Xray linkage crawlergo automatic scanning pit climbing record
Coordinate transformation
如何查看本机IP
There are so many code comments! I laughed
Easy EDA #学习笔记09# | ESP32-WROOM-32E模组ESP32-DevKitC-V4开发板 一键下载电路
XShell7 下载
Link of Baidu URL Parameters? Recherche sur le chiffrement et le décryptage des paramètres d'URL (exemple de Code)
综合培养学生脑力思维的少儿编程
Topic35——34. 在排序数组中查找元素的第一个和最后一个位置
Add IPAD control function into shairplay
Measurement principle and thickness measurement mode of spectral confocal
Understand how learning JSX works
20220620 uniformly completely observable (UCO)
页面嵌入iframe 点击浏览器后退问题
leetcode - 572. 另一棵树的子树
Laravel log channel 分组配置
c#数据库报错问题大家帮我看看吧