Search in sources :

Example 1 with PeerConnectionFactoryOptions

use of org.thoughtcrime.securesms.webrtc.PeerConnectionFactoryOptions in project Signal-Android by WhisperSystems.

the class WebRtcCallService method initializeResources.

// Initializers
private void initializeResources() {
    ApplicationContext.getInstance(this).injectDependencies(this);
    this.callState = CallState.STATE_IDLE;
    this.lockManager = new LockManager(this);
    this.peerConnectionFactory = new PeerConnectionFactory(new PeerConnectionFactoryOptions());
    this.audioManager = new SignalAudioManager(this);
    this.bluetoothStateManager = new BluetoothStateManager(this, this);
    this.messageSender = messageSenderFactory.create();
    this.messageSender.setSoTimeoutMillis(TimeUnit.SECONDS.toMillis(10));
    this.accountManager.setSoTimeoutMillis(TimeUnit.SECONDS.toMillis(10));
}
Also used : LockManager(org.thoughtcrime.securesms.webrtc.locks.LockManager) BluetoothStateManager(org.thoughtcrime.securesms.webrtc.audio.BluetoothStateManager) SignalAudioManager(org.thoughtcrime.securesms.webrtc.audio.SignalAudioManager) PeerConnectionFactoryOptions(org.thoughtcrime.securesms.webrtc.PeerConnectionFactoryOptions) PeerConnectionFactory(org.webrtc.PeerConnectionFactory)

Aggregations

PeerConnectionFactoryOptions (org.thoughtcrime.securesms.webrtc.PeerConnectionFactoryOptions)1 BluetoothStateManager (org.thoughtcrime.securesms.webrtc.audio.BluetoothStateManager)1 SignalAudioManager (org.thoughtcrime.securesms.webrtc.audio.SignalAudioManager)1 LockManager (org.thoughtcrime.securesms.webrtc.locks.LockManager)1 PeerConnectionFactory (org.webrtc.PeerConnectionFactory)1