Agora 检测观众端的屏幕共享流 [英] Agora Detect Screen Share Stream on Audience Side

查看:71
本文介绍了Agora 检测观众端的屏幕共享流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何检测流是观众/远程端的屏幕共享还是网络摄像头?

Does anybody know how to detect stream whether its a Screen Share or Webcam on the audience/remote Side ?

在主持人端,我能检测到,但在观众端无法检测

On the host side, I am able to detect but not on the audience side

我想在网页的另一部分显示屏幕共享远程流,在另一部分显示网络摄像头流

I want to display screen shared remote stream in another part of the web page and webcam stream on another

推荐答案

屏幕共享和视频将作为带有回调的远程视频进入.如果您想检测屏幕共享与常规视频,您需要开发一些应用程序逻辑.例如,屏幕共享 UID 将是一个介于 10000 到 11000 之间的整数(根据您的使用情况,您可以提高或降低此值),这样您就知道该数字是否来自该范围,它就是屏幕共享.

Screen share and video will come in as just video on the remote side with a callback. If you want to detect screen share vs. regular video that you need to develop some app logic on your side. For example, the screen share UID would be an integer only from 10000 to 11000 (depending on your usage, you could raise or lower this) so you know if the number comes from that range it is a screen share.

这篇关于Agora 检测观众端的屏幕共享流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆