当前位置:网站首页>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
边栏推荐
- Redis cluster cluster capacity expansion and data migration
- [GPIO] 如何通过adb shell 修改/显示 GPIO 状态
- Index fund summary
- Legal liabilities to be borne by the person in charge of the branch
- 个人申请OV类型SSL证书
- 43. Number of occurrences of 1 in 1 ~ n integers
- [untitled]
- The way to promote software test engineer
- Performance & interface test tool - JMeter
- Necessary for Test Engineer -- package capturing tool fiddler
猜你喜欢

Go interface oriented programming practice

Towards End-to-End Lane Detection: an Instance SegmentationApproach

16. Somme des trois plus proches

Details of FPGA syntax

Project requirements specification

Nature | make an account of the new crown casualties in the world

个体工商户是不是法人企业
![[getting to the bottom] five minutes to understand the combination evaluation model - fuzzy borde (taking the C question of the 2021 college students' numerical simulation national competition as an e](/img/2e/97310ec36aeb1fc1e9c82361141a36.jpg)
[getting to the bottom] five minutes to understand the combination evaluation model - fuzzy borde (taking the C question of the 2021 college students' numerical simulation national competition as an e

Quickly get PCA (principal component analysis) (principle code case)

Vivado HLS introductory notes
随机推荐
Select gb28181, RTSP or RTMP for data push?
merge sort
Go 接口实现原理【高阶篇】
China's alternative sports equipment market trend report, technology dynamic innovation and market forecast
Test work summary - performance test related issues
Greenplum [question 05] Greenplum streaming server custom client problem handling (increasing)
DMA RDMA technology details
Codec of ASoC framework driven by alsa
14- II. Cutting rope II
[untitled]
The server time zone value ‘Ö Ð¹ ú±ê ×¼ ʱ ¼ ä‘ is unrecognized or represents more than one time zone. You
51. reverse order pairs in the array
59 - II. Maximum value of the queue
59 - I. maximum value of sliding window
WiFi protocol and ieee905 protocol learning details
Beginning is an excellent emlog theme v3.1, which supports emlog Pro
[go] Viper reads the configuration file in the go project
60. points of N dice
57 - II. Continuous positive sequence with sum s
C language - how to define arrays