twilio / twilio-video.js

Twilio’s Programmable Video JavaScript SDK
https://www.twilio.com/docs/video/javascript
Other
571 stars 217 forks source link

Group Room Communicate with one To One Using Twilio Video JavaScript #781

Closed DipenIprospl closed 4 years ago

DipenIprospl commented 5 years ago

user-1 is connected to room. same room user-2 is connected as participant and user-3 is connected as participant. but not see user-1 video screen in user-2 screen and user-3 screen. user-2 and user-3 only show self view. user-1 can video screen view user-2 and user-3. user-1 can click user-2 start button that time user-1 communicate with user-2 but user-3 not see user-1 video screen.

makarandp0 commented 5 years ago

Hello @DipenIprospl, Thank you for writing about this issue. Could you please fill in issue-template, and also share any code samples to isolate and demonstrate the issue. That would make it easier for us to see your usage of the SDK, and provide any guidance.

Thanks, Makarand JSDK Team.

DipenIprospl commented 5 years ago

Hi @makarandp0, I am using programmable video with JavaScript and refer code in this url (https://www.twilio.com/docs/video/javascript-v1-getting-started). And Scenario in example.

This Is Scenario.

  1. User-1 Connected room.
  2. User-2 Connected Same room But User-2 screen Not See User-1 Video Screen frame or User-1 Video Screen black frame Allowed.
  3. User-3 Connected same room But User-3 Screen Not See User-1 Video Screen frame And User-2 Video Screen frame or User-1 Video Screen frame And User-2 Video Screen black frame Allowed.
  4. User-1 Can See User-2 Local Video Screen frame And User-3 Local Video Screen frame.
  5. User-1 Can Start With Communication Between User-2. User-2 Can See User-1 Audio And Video Screen frame. At That Time User-3 Can Not See User-1 Audio And Video Screen frame or Display black Video Screen frame.
  6. User-1 Can Stop With Communication Between User-2 That User-2 Not See User-1 Audio And Video Screen frame or Display black Video Screen frame.

It can possible This Scenario So I Am Done With.

makarandp0 commented 5 years ago

@DipenIprospl, I am sorry, but the issue is not clear to me. Are you wondering if the scenario you mention is possible with Twilio SDK, or are you encountering any issue when implementing the scenario? Any code samples that demonstrate the issue will make it easier to understand.

Please fill in following template. =============

Code to reproduce the issue:

// TODO

Expected behavior:

TODO

Actual behavior:

TODO

Software versions:

DipenIprospl commented 4 years ago

@makarandp0 Sorry i am busy can not replay your question. working js file twilio-video.js: 1.14.1. all code working in single page .aspx file.

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.

It is possible User-3 screen only user-1 video and audio unable and disable. User-3 screen user-3 as localparticipant and user-1 as remoteparticipant.

DipenIprospl commented 4 years ago

Only Participant Audio and Video Enable And Disable. It is Working.