ApiRTC / apirtc-react-native-demo

Demo of ApiRTC with react-native
5 stars 4 forks source link

How do I disable Audio? #5

Closed spkprav closed 5 years ago

spkprav commented 6 years ago

Kindly let me know how do I disable the audio with this.

let callConf = {
   mediaTypeForOutgoingCall : 'VIDEOONLY',
   muted : 'AUDIOONLY'
};
const callId = this.webRTCClient.call(this.state.selected, {}, callConf);

I tried the above, but not working.

spkprav commented 6 years ago

@FredLuart Please help.

francois-legoff commented 6 years ago

Are you using latest version ? (https://cloud.apizee.com/apiRTC/apiRTC-latest.min.js) With your configuration, the call transmitted has no audio, but on remote side when you accept call, you need to add parameter on method : acceptCall(callId, callConfiguration). More information : https://apirtc.com/wp-content/themes/wikee/docs/apiRTC/module-ApiRTCWebRTCClient.html#acceptCall__anchor

FredLuart commented 6 years ago

Make sure to use the latest reactNative version of apiRTC : https://cloud.apizee.com/apiRTC/v3.18/apiRTC-React-latest.min.debug.js

spkprav commented 6 years ago

@francois-legoff @FredLuart Hi, Thanks for the reply, I will use this and let you know if it works.

spkprav commented 5 years ago

Didn't work, so I forked react-native-webrtc and disabled the permission.