[英]Twilio Programmable Video Using Javascript
working js file twilio-video.js: 1.14.1.工作 js 文件 twilio-video.js: 1.14.1。 all code working in single page.aspx file.所有代码都在单个 page.aspx 文件中工作。
if possible participant audio track disable share code.如果可能,参与者音轨禁用共享代码。
//Participant is all participant connect with Room. For Ex. User-1 Screen Page Participant User-2, User-3 And User-4.
participant.audioTracks.forEach(function (track) {
if (track.kind === 'audio') {
track.mediaStreamTrack.enabled = false;
track.mediaStreamTrack.muted = true;
}
// sid is disable Audio track Particular Participant sid. For Ex. User-1 Screen Participant User-3 audio disable using audio track sid It is Possible. If Possible give me code or reference url link.
if (track.sid == sid)
{
//participant audio track disable.
track.disable();
}
});
If it is possible give me code or url reference link.如果可能的话,请给我代码或 url 参考链接。
It is possible User-3 screen only user-1 video and audio unable and disable.用户 3 的屏幕可能只有用户 1 的视频和音频无法和禁用。 User-3 screen user-3 as localparticipant and user-1 as remoteparticipant.用户 3 屏幕用户 3 作为本地参与者,用户 1 作为远程参与者。
If another way it's possible give me suggestion and reference url link.如果另一种方式可以给我建议和参考 url 链接。 If Rest Api Possible Give me reference url link i am refer Twilio rest api. If Rest Api Possible Give me reference url link i am refer Twilio rest api.
Twilio developer evangelist here. Twilio 开发人员布道师在这里。
The reference documentation for the Twilio Video JavaScript SDK is available here . Twilio 视频 JavaScript SDK 的参考文档可在此处获得。
You can only disable LocalTrack
s in the SDK, for example LocalAudioTrack#disable
.您只能在 SDK 中禁用LocalTrack
,例如LocalAudioTrack#disable
。
I'm not sure what else you're asking here.我不确定你在这里还问什么。 Is your code not working as expected or throwing an error?您的代码是否未按预期工作或引发错误?
my scenario is User-1, User-2 And User-3 Connect Same Room And All User Audio Disable.我的场景是用户 1、用户 2 和用户 3 连接同一个房间并禁用所有用户音频。 User-1 Screen User-1 As localparticipant and user-2 and user-3 As remoteparticipant Same As User-2 Screen And User-3 Screen.用户 1 屏幕 用户 1 作为本地参与者,用户 2 和用户 3 作为远程参与者 与用户 2 屏幕和用户 3 屏幕相同。
But User-1 Screen All remoteparticipant video Enable and User-2 And User-3 Screen Only Self view And Participant Video Not Display.但用户 1 屏幕所有远程参与者视频启用和用户 2 和用户 3 屏幕仅自我查看和参与者视频不显示。
User-1 can Start Communication with User-2 That Time User-1 Audio Enable And User-2 Audio Enable only this two user can Audio And Video communicate With Each Other.用户 1 可以开始与用户 2 通信,此时用户 1 音频启用和用户 2 音频启用只有这两个用户可以相互进行音频和视频通信。 Like One To One Not One To Many.像一对一而不是一对多。
For Ex.对于前。 User-1 Can Start Button That Time User-1 Local Audio Enable And User-2 Local Audio Enable.用户 1 可以启动按钮,此时用户 1 本地音频启用和用户 2 本地音频启用。 But Currently Issue User-3 Can hear User-1 and User-2 Communication Audio I Want Disable Audio.但当前问题 User-3 可以听到 User-1 和 User-2 通信音频我想要禁用音频。 It Is Possible?有可能的?
User-3 Screen all Participant Audio Disable It Is Possible?用户 3 屏蔽所有参与者音频 禁用 可能吗?
If User-1 screen localparticipant audio enable but user-3 screen user-1 as remoteparticipant i want to user-1 participant audio disable.如果用户 1 屏幕本地参与者音频启用但用户 3 屏幕用户 1 作为远程参与者我想用户 1 参与者音频禁用。 it is possible?有可能的?
It's Possible Javascipt code Audio Will disable?可能 Javascipt 代码音频将禁用? All are doing in same page using .net and javascript.所有这些都使用 .net 和 javascript 在同一页面上进行。
If it is Possible show my code.如果可能显示我的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.