当前位置:网站首页>Introduction to webrtc concept -- an article on understanding source, track, sink and mediastream
Introduction to webrtc concept -- an article on understanding source, track, sink and mediastream
2022-07-01 02:57:00 【Crossing the river with a reed 694】

A term is used to explain
source: Media streaming providers
track: The media stream held by the application , Can be used to play
sink: Media stream recipients
source Is the production of media resources ,sink Responsible for consumption
source —( Provide media streaming )—> track —( Output media stream )—> sink
For streaming media systems , The device that generates data is called Source, The device that receives data is called Sink.
If one source Can belong to more than one track, So you can make different sink Bind the same source, It will lead to inability to cope with multiple states
track Some status information and processing are saved in , This is the same as source decoupling
webrtc In the abstract VideoSourceInterface and VideoSinkInterface respectively Source and Sink
source After the camera captures the image , Save the video , Become a video source , Coding and local rendering require consuming images for processing , Similar to the concept of production and consumption
For consumers , That is to say sink Come on , If I want to add a consumer , I inherit sink Interface , Plug it into the instance where the video source is saved , Let the instance continue to fill me with data for my consumption (onFrame), therefore sink The interface definition of is easy to understand
The header file :media_stream_interface.h
边栏推荐
- [QT] add knowledge supplement of third-party database
- Lenovo x86 server restart management controller (xclarity controller) or TSM method
- 股票开账户如何优惠开户?还有,在线开户安全么?
- A shooting training method based on the digital measurement of Joule energy and posture of sphygmomanometer air bag with standard air pressure
- 鼠标悬停效果七
- Dell服务器重启iDRAC方法
- LeetCode_ Stack_ Difficulties_ 227. basic calculator (excluding multiplication and division)
- Add / delete / modify query summary insert/create/put/add/save/post, delete/drop/remove, update/modify/change, select/get/list/find
- Complete training and verification of a neural network based on pytorch
- RestCloud ETL WebService数据同步到本地
猜你喜欢

Restcloud ETL practice to realize incremental data synchronization without identification bit

Communication protocol -- Classification and characteristics Introduction

MnasNet学习笔记

php批量excel转word

Visual effects, picture to cartoon function
![[linear DP] shortest editing distance](/img/2f/9a6f661bf478fdd5d53e5a03d7297d.jpg)
[linear DP] shortest editing distance

Record a service deployment failure troubleshooting

kubernetes资源对象介绍及常用命令(二)

Prototype and prototype chain in JS

PCB defect detection based on OpenCV and image subtraction
随机推荐
Saving images of different depths in opencv
Optimal Transport系列1
PCB defect detection based on OpenCV and image subtraction
Share Creators萌芽人才培養計劃來了!
[linear DP] shortest editing distance
POI导出excel,按照父子节点进行分级显示
Cloud native annual technology inventory is released! Ride the wind and waves at the right time
Detailed explanation of pointer array and array pointer (comprehensive knowledge points)
[applet project development -- Jingdong Mall] user defined search component of uni app (Part 1)
Mouse over effect 10
产业互联网中,「小」程序有「大」作为
【小程序项目开发--京东商城】uni-app之自定义搜索组件(上)
【Qt】添加第三方库的知识补充
mybati sql 语句打印
如果我在北京,到哪里开户比较好?另外,手机开户安全么?
Catch 222222
lavaweb【初识后续问题的解决】
Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
STM32 - DS18B20 temperature sampling of first-line protocol
在国内如何买港股的股?用什么平台安全一些?