ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

Can we make a simple Audio only call? #98

Closed stephanoparaskeva closed 4 years ago

stephanoparaskeva commented 4 years ago

I want to be able to provide high quality audio calls that only require minimum internet speed/bandwidth.

I want to give the users an option to Audio call (no video).

How is this done?

Kachanov-dev commented 4 years ago

Hi @stephanoparaskeva. The ConnectyCube SDK has the "muteVideo && unmuteVideo" methods. After receiving the local stream, you need to call the method this._session.muteVideo ()

stephanoparaskeva commented 4 years ago

Hi @stephanoparaskeva. The ConnectyCube SDK has the "muteVideo && unmuteVideo" methods. After receiving the local stream, you need to call the method this._session.muteVideo ()

Is this as good as an actual audio call? it sounds a little bit hacky.

There needs to be a way to start an audio call from the begging rather than just muting video...

Kachanov-dev commented 4 years ago

Hi @stephanoparaskeva. The ConnectyCube SDK has the "muteVideo && unmuteVideo" methods. After receiving the local stream, you need to call the method this._session.muteVideo ()

Is this as good as an actual audio call? it sounds a little bit hacky.

There needs to be a way to start an audio call from the begging rather than just muting video...

If you are using conferences (Janus):

stephanoparaskeva commented 4 years ago

If you are using WebRTC (p2):

  • Specify the session type ConnectyCube.videochat.CallType. AUDIO more information - Create video session

That's really good. If you can do this ConnectyCube.videochat.CallType. AUDIO to initiate 1-to-1 audio call, why did you not say this originally?

ccvlad commented 4 years ago

@stephanoparaskeva For first, tell us what type of calls are you going to use? We have video/audio calls based on WebRTC (peer-to-peer). Sample. And conference calls based on Janus technology (one user create a room and invites others). Sample

ccvlad commented 4 years ago

Here the docs:

My team-mate was explained you about the Conference calls:

stephanoparaskeva commented 4 years ago

Here the docs:

My team-mate was explained you about the Conference calls:

  • you are able to get and send only audio stream when call session.getUserMedia(params) with {video: false} in params
  • but the best way is set mute after call, cause you won't transport video track ("0" bytes sends) and can switch-on the video when you want

This is very informative. Closed as per solution. Thanks!