当前位置:网站首页>RTMP streaming +rtmp playback low delay solution in unity environment
RTMP streaming +rtmp playback low delay solution in unity environment
2022-06-12 05:36:00 【daniulive】
Before this article , We released Unity In the environment RTMP Push flow (Windows platform +Android platform ) and RTMP|RTSP Pull flow (Windows platform +Android platform +iOS platform ) Low latency solutions , Make an overall summary today , It is right to draw a brick to draw a stone .
1. Unity In the environment RTMP Push flow
Unity In the environment , Whether it's camera Or form data , The main thing is to get the original data efficiently , The data format available at the acquisition end is RGB Of , After getting it , Through efficient data transmission , Send it to the encapsulated native SDK, Complete data coding and RTMP push .

There are several points to note :
1. Data collection and delivery , Ensure high efficiency ;
2. Screen resolution changes , It can be adapted in real time ;
3. Unity And native SDK Communication between , such as event Correction etc. ;
4. If the screen data is flipped horizontally or vertically , Need some correction .
Related blog :
Windows Platform implementation Unity Lower form | camera | Screen acquisition push
https://blog.csdn.net/renhui1112/article/details/117785180
Android Platform implementation Unity3D Next RTMP push
https://blog.csdn.net/renhui1112/article/details/117669587
2. Unity In the environment RTMP|RTSP player
Unity In the environment RTMP or RTSP Live broadcast, we released it a few years ago , It has been applied in many traditional industries , For example, educational or industrial simulation or some low delay control scenarios .

The relevant implementation logic is as follows :
1. Native RTSP or RTSP Live broadcast SDK Callback RGB/YUV420/NV12 One of the uncompressed image formats ;
2. Unity3D Create the corresponding RGB/YUV420 etc. Shader;
3.Unity3D Image data is obtained from each platform to fill the texture ;
There are a few things to note :
1. Multi instance support : The player is different from the push , For example, smart city , There are multiple scenes at the playback end , Therefore, multi instance support is a necessary function , In a multi instance environment , Need to be able to make a good distinction event Status callback, etc ;
2. Data transfer as efficiently as possible , Ensure that resource occupancy is minimized ;
3. After the video resolution changes , Can automatically adapt ;
4. Unity And native SDK Communication between , such as event Correction etc. ;
5. Long running stability .
Related blog :
Windows platform Unity3d How to play multiple channels at the same time RTSP or RTMP flow
https://blog.csdn.net/renhui1112/article/details/114674572
How to be in Unity3d Low latency playback under the platform RTMP or RTSP flow
边栏推荐
- PHP实现图片登录验证码的解决方案
- 虚函数与纯虚函数的关系
- 19. regular expression matching
- Go 接口实现原理【高阶篇】
- It costs less than 30 yuan, but we still don't build it quickly - check the small knowledge of software application
- Computer network connected but unable to access the Internet
- 16. 最接近的三數之和
- SIM卡信号的驱动电流是多少mA,是否是可调节的?
- GRE protocol details
- 利用jieba库进行词频统计
猜你喜欢

Golang idea configures the agent to improve the speed of packages downloaded by go get

Introduction to audio alsa architecture

38. 外观数列

WiFi band resources

按键精灵的简单入门

Why should state-owned enterprises go public

FPGA语法的细节

MySQL Linux Installation mysql-5.7.24

16. 最接近的三數之和

Matlab: halftone and dither conversion
随机推荐
How long is the company's registered capital subscribed
38. appearance series
UBI details and JFFS2 square FS UBIFS
@Configurationproperties value cannot be injected
PHP实现图片登录验证码的解决方案
GRE protocol details
Performance & interface test tool - JMeter
Esp32-who face detection
Details of FPGA syntax
Detailed explanation of data envelopment analysis (DEA) (taking the 8th Ningxia provincial competition as an example)
62. the last number left in the circle
Introduction to audio alsa architecture
Flex/fixed upper, middle and lower (mobile end)
Optipng can optimize the compressed PNG picture file format
Why can't NAND flash be used as RAM while nor flash can
38. arrangement of strings
WiFi band resources
国企为什么要上市
Servlet core
flex/fixed上中下(移动端)