当前位置:网站首页>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
边栏推荐
- js中的原型和原型链
- Gartner研究:在中国,混合云的采用已成为主流趋势
- Const and the secret of pointers
- 性能测试常见面试题
- Complete training and verification of a neural network based on pytorch
- Mouse over effect VI
- 使用ipmitool配置X86服务器的BMC网络和用户信息
- Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
- Detailed data governance knowledge system
- 第03章_用户与权限管理
猜你喜欢

PCB defect detection based on OpenCV and image subtraction

# 使用 KubeKey 搭建 Kubernetes/KubeSphere 环境的'心路(累)历程'

Xception learning notes

Youmeng (a good helper for real-time monitoring of software exceptions: crash) access tutorial (the easiest tutorial for Xiaobai with some foundation)

RestCloud ETL WebService数据同步到本地

Detailed explanation of pointer array and array pointer (comprehensive knowledge points)

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

XXL job User Guide

Multithreaded printing
![[linear DP] shortest editing distance](/img/2f/9a6f661bf478fdd5d53e5a03d7297d.jpg)
[linear DP] shortest editing distance
随机推荐
Big orange crazy blog move notice
调试定位导航遇到的问题总结
Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
Nacos configuration center tutorial
Optimal transport Series 1
Add / delete / modify query summary insert/create/put/add/save/post, delete/drop/remove, update/modify/change, select/get/list/find
【Qt】添加第三方库的知识补充
Install vcenter6.7 [vcsa6.7 (vCenter server appliance 6.7)]
servlet【初识】
联想X86服务器重启管理控制器(XClarity Controller)或TSM的方法
产业互联网中,「小」程序有「大」作为
Mouse over effect 9
Summary of problems encountered in debugging positioning and navigation
鼠标悬停效果十
Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
股票开户安全吗?上海股票开户步骤。
Detailed data governance knowledge system
[applet project development -- JD mall] uni app commodity classification page (Part 2)
[applet project development -- Jingdong Mall] classified navigation area of uni app
Network address translation (NAT) technology