| | |
| | | if (isVideoCall) { |
| | | params.enableVideo(true); |
| | | params.enableLowBandwidth(false); |
| | | params.setAudioBandwidthLimit(0); // disable limitation |
| | | } else { |
| | | params.enableVideo(false); |
| | | params.setAudioBandwidthLimit(40); // disable limitation |
| | | } |
| | | |
| | | if (addressToCall != null) { |
| | |
| | | Call currentCall = HDLLinphoneService.getCore().getCurrentCall(); |
| | | CallParams params = HDLLinphoneService.getCore().createCallParams(currentCall); |
| | | params.enableVideo(true); |
| | | params.setAudioBandwidthLimit(0); // disable limitation |
| | | currentCall.acceptWithParams(params); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | Call currentCall = HDLLinphoneService.getCore().getCurrentCall(); |
| | | CallParams params = HDLLinphoneService.getCore().createCallParams(currentCall); |
| | | params.enableVideo(enableVideo); |
| | | params.setAudioBandwidthLimit(enableVideo ? 0 : 40); |
| | | currentCall.acceptWithParams(params); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |