当前位置:网站首页>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
边栏推荐
- Restcloud ETL data realizes incremental data synchronization through timestamp
- [linear DP] longest common subsequence
- 【PR #5 A】双向奔赴(状压DP)
- Mouse over effect V
- Mouse over effect III
- 【Qt】添加第三方库的知识补充
- Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
- 鼠标悬停效果四
- The operation efficiency of the park is improved, and the application platform management of applet container technology is accelerated
- Servlet [first introduction]
猜你喜欢

PHP batch Excel to word

Restcloud ETL practice data row column conversion

Saving images of different depths in opencv

Const and the secret of pointers

STM32——一线协议之DS18B20温度采样
![[linear DP] shortest editing distance](/img/2f/9a6f661bf478fdd5d53e5a03d7297d.jpg)
[linear DP] shortest editing distance

Mnasnet learning notes

php批量excel转word

Dell server restart Idrac method

# 使用 KubeKey 搭建 Kubernetes/KubeSphere 环境的'心路(累)历程'
随机推荐
调试定位导航遇到的问题总结
js 找出两个数组中的重复元素
LeetCode_ Stack_ Difficulties_ 227. basic calculator (excluding multiplication and division)
Sampling Area Lights
VMware vSphere 6.7 virtualization cloud management 12. Vcsa6.7 update vCenter server license
鼠标悬停效果十
Add / delete / modify query summary insert/create/put/add/save/post, delete/drop/remove, update/modify/change, select/get/list/find
旷世轻量化网络ShuffulNetV2学习笔记
Scale SVG to container without mask / crop
Servlet [first introduction]
Lenovo x86 server restart management controller (xclarity controller) or TSM method
HTB-Lame
Share Creators萌芽人才培養計劃來了!
[exsi] transfer files between hosts
Dell服务器重启iDRAC方法
如果在小券商办理网上开户安全吗?我的资金会不会不安全?
[applet project development -- JD mall] uni app commodity classification page (Part 2)
Dell server restart Idrac method
Example of Huawei operator level router configuration | example of configuring optionc mode cross domain LDP VPLS
【小程序项目开发--京东商城】uni-app之自定义搜索组件(上)