Regarding Multiparty Chat

92 views
Skip to first unread message

Manish Vig

unread,
Aug 25, 2015, 7:27:34 AM8/25/15
to EasyRTC
Is this possible to allow a user in multiparty chat of easyrtc without video or audio? So, that he/she can only use the text chat, & see other room member on his screen.

Eric Davies

unread,
Aug 25, 2015, 10:11:05 AM8/25/15
to EasyRTC
Multiparty chat could be modified to support that functionality.
However, if you have some plans of one person sending their video out to more than 6 or so people, you're going to run into bandwidth issues. The peer-to-peer model only supports a low fan-out.

Manish Vig

unread,
Aug 25, 2015, 12:19:06 PM8/25/15
to EasyRTC
sir right now i just want to modified it in terms of, if a person don't have any audio and video input source with his device then how he can join the room. Actually in multiparty chat it first ask about the camera & if it didnt find it will show devicenotfound error. So, kindly help me regarding this.

Eric Davies

unread,
Aug 25, 2015, 5:59:55 PM8/25/15
to EasyRTC
try the below calls (before calling easyrtc.easyApp) in the app that shouldn't be sending video.
   easyrtc.enableVideo(false);
   easyrtc.enableAudio(false);

Manish Vig

unread,
Aug 26, 2015, 6:21:22 AM8/26/15
to EasyRTC
hi sir,

after putting this code before calling easyrtc.easyApp now no body is connecting in the room.

my problem is:

suppose there are four person A, B, C & D, want to be connect in a room.
A: with audio and video
B: with audio and video
C: with no device
D: with audio and video

and now they are in a room. A, B & D are easily connecting in the room because they have video and audio. But when C opens the url he find the blank screen. only with blank video border. 

And i want C should be connect in the room so that he can atleast use text chat with A, B & D.

Hope now you are clear with my problem.

Anirban Dutta

unread,
Aug 26, 2015, 6:43:31 AM8/26/15
to EasyRTC
Hi. I think this problem can be solved through setting the logic at connect();
 
You need this three: 
easyrtc.enableAudio(true);
  easyrtc.enableVideo(true);
  easyrtc.enableDataChannels(true);
inside connect();

Now, when you call easyrtc.initMediaSource you can alter the function in a condition for having either 'all three' or 'first two' or 'only the last one'.

let me know if this logic works.

Manish Vig

unread,
Aug 26, 2015, 6:56:06 AM8/26/15
to EasyRTC
Dear Anirban,

Thanks for sharing your view.

Actually i am using easyrtc multiparty chat. in this we have appinit() initial call instead of connect().
So can you tell me the same for multiparty.

Eric Davies

unread,
Aug 27, 2015, 2:24:11 AM8/27/15
to EasyRTC
I looked at the source for easyApp. It's always going to want to allocate a media stream. 
You need a variant version of it that doesn't bother to allocate the media stream. 

Manish Vig

unread,
Aug 28, 2015, 3:43:00 AM8/28/15
to EasyRTC
Hi sir,

Exactly, now the problem is clear.
Now can you tell me sir, which version i have to use or what should be done to solve my problem.

Thanks

Manish Vig

unread,
Aug 31, 2015, 7:58:04 AM8/31/15
to EasyRTC
i have try a lot in easyrtc.js but in vain.

kindly tell me the best way to do what i want.
Thanks

Eric Davies

unread,
Aug 31, 2015, 10:41:40 AM8/31/15
to EasyRTC
You may want to consider looking at the more primitive demo_audio_video.

The purpose of EasyRTC is to make it easy to access WebRTC functionality, not to make it easy to write your entire application.
You may want to consider hiring a programmer.
Reply all
Reply to author
Forward
0 new messages