Private Set audioDevices = new HashSet() Contains a list of available audio devices. Private final InCallWakeLockUtils wakeLockUtils Private final InCallProximityManager proximityManager Private final AppRTCBluetoothManager bluetoothManager Handles all tasks related to Bluetooth headset devices. Private final String useSpeakerphone = SPEAKERPHONE_AUTO Contains speakerphone setting: auto, true or false Private AudioDevice userSelectedAudioDevice explicit selection based on choice by userSelectedAudioDevice. TODO(henrika): always set to AudioDevice.NONE today. Contains the user-selected audio device which overrides the predefined See |userSelectedAudioDevice| for details. user to explicitly select a device (and overrid any predefined scheme). a wired headset "wins" over speaker phone. This device is changed automatically using a certain scheme where e.g. Contains the currently selected audio device. Private AudioDevice defaultAudioDevice = AudioDevice. Default audio device speaker phone for video calls or earpiece for audio Private boolean savedIsMicrophoneMute = false Private boolean savedIsSpeakerPhoneOn = false Private int savedAudioMode = AudioManager. Public class InCallManagerModule extends ReactContextBaseJavaModule implements LifecycleEventListener * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * copyright notice and this permission notice appear in all copies. * purpose with or without fee is hereby granted, provided that the above * Copyright (c) 2017 Henry Lin Permission to use, copy, modify, and distribute this software for any InCallManagerModule Class MyPlayerInterface Interface isPlaying Method startPlay Method stopPlay Method getName Method manualTurnScreenOff Method run Method manualTurnScreenOn Method run Method storeOriginalAudioSetup Method restoreOriginalAudioSetup Method startWiredHeadsetEvent Method onReceive Method stopWiredHeadsetEvent Method startNoisyAudioEvent Method onReceive Method stopNoisyAudioEvent Method startMediaButtonEvent Method onReceive Method stopMediaButtonEvent Method onProximitySensorChangedState Method startProximitySensor Method stopProximitySensor Method OnFocusChangeListener Class onAudioFocusChange Method sendEvent Method start Method stop Method stop Method startEvents Method stopEvents Method requestAudioFocus Method releaseAudioFocus Method pokeScreen Method debugScreenPowerState Method turnScreenOn Method turnScreenOff Method setKeepScreenOn Method run Method setSpeakerphoneOn Method setForceSpeakerphoneOn Method setMicrophoneMute Method startRingback Method stopRingback Method startBusytone Method stopBusytone Method startRingtone Method run Method run Method stopRingtone Method run Method setMediaPlayerEvents Method onError Method onInfo Method onPrepared Method onCompletion Method getAudioUriJS Method getRingtoneUri Method getRingbackUri Method getBusytoneUri Method getAudioUri Method getSysFileUri Method getDefaultUserUri Method myToneGenerator Class setCustomWaitTime Method startPlay Method isPlaying Method stopPlay Method run Method myMediaPlayer Class stopPlay Method startPlay Method isPlaying Method checkRecordPermission Method checkCameraPermission Method _checkRecordPermission Method _checkCameraPermission Method _checkPermission Method requestRecordPermission Method requestCameraPermission Method chooseAudioRoute Method _requestPermission Method getRandomInteger Method onRequestPermissionsResult Method pause Method resume Method onHostResume Method onHostPause Method onHostDestroy Method updateAudioRoute Method setAudioDeviceInternal Method setDefaultAudioDevice Method selectAudioDevice Method getAudioDevices Method getSelectedAudioDevice Method registerReceiver Method unregisterReceiver Method hasEarpiece Method hasWiredHeadset Method updateAudioDeviceState Method getAudioDeviceStatusMap Method getPreferredAudioDevice Method getPreferredAudioDevice Method
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |