当前位置:网站首页>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
边栏推荐
猜你喜欢

Saving images of different depths in opencv

Dell server restart Idrac method

Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and

Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example

Here comes the share creators budding talent training program!

Huawei operator level router configuration example | configuration optionA mode cross domain LDP VPLS example

【EXSI】主机间传输文件

Restcloud ETL practice data row column conversion

lavaweb【初识后续问题的解决】

Network address translation (NAT) technology
随机推荐
单片机 MCU 固件打包脚本软件
Restcloud ETL实践之数据行列转换
Is it safe to open a stock account? Shanghai stock account opening procedures.
STM32 - DS18B20 temperature sampling of first-line protocol
Mnasnet learning notes
Scale SVG to container without mask / crop
[wechat applet development] style summary
Prototype and prototype chain in JS
js中的原型和原型链
Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
在国内如何买港股的股?用什么平台安全一些?
使用ipmitool配置X86服务器的BMC网络和用户信息
【EXSI】主机间传输文件
Ipmitool download address and possible problems during compilation and installation
HTB-Lame
Const and the secret of pointers
Sampling Area Lights
Gartner研究:在中国,混合云的采用已成为主流趋势
调试定位导航遇到的问题总结
【小程序项目开发 -- 京东商城】uni-app 商品分类页面(下)