android 11에서 remonCast로 방송 시청만 사용중입니다.
아무런 연결없이 폰의 스피커로는 잘 나옵니다만 블루투스 헤드폰 또는 이어폰을 연결했을 때는 재생버튼을 한번 눌러줘야 그제서야 소리가 납니다.
close 후에 join을 할때도 바로 소리가 안나오고 재생 버튼을 눌러줘야 나옵니다.
방송 시청 도중에 블루투스 헤드폰을 켜서 연결을 하면 바로 소리가 안나오고 재생 버튼을 눌러줘야 나옵니다.
혹시 블루투스 관련 설정을 따로 해줘야 하나요? 아래는 logcat에 찍힌 블루투스 관련 로그입니다. 연결한 헤드셋은 SKY Fit ANC100 입니다.
2021-02-16 11:53:29.163 11963-11963/D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=OFF, sb=false, BT state: SCO_CONNECTING
2021-02-16 11:53:29.163 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now disconnected
2021-02-16 11:53:29.163 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:53:29.163 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTING
2021-02-16 11:53:31.357 11963-11963/ D/AppRTCBluetoothManager: bluetoothTimeout: BT state=SCO_CONNECTING, attempts: 1, SCO is on: false
2021-02-16 11:53:31.359 11963-11963/ D/AppRTCBluetoothManager: SCO is not connected with SKY Fit ANC100
2021-02-16 11:53:31.359 11963-11963/ W/AppRTCBluetoothManager: BT failed to connect after timeout
2021-02-16 11:53:31.359 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio: BT state=SCO_CONNECTING, SCO is on: false
2021-02-16 11:53:31.359 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:53:31.360 11963-11963/D/AppRTCBluetoothManager: stopScoAudio done: BT state=SCO_DISCONNECTING, SCO is on: false
2021-02-16 11:53:31.360 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:53:31.360 11963-11963/ D/AppRTCBluetoothManager: updateDevice
2021-02-16 11:53:31.362 11963-11963/ D/AppRTCBluetoothManager: Connected bluetooth headset: name=SKY Fit ANC100, state=CONNECTED, SCO audio=false
2021-02-16 11:53:31.363 11963-11963/ D/AppRTCBluetoothManager: updateDevice done: BT state=HEADSET_AVAILABLE
2021-02-16 11:53:31.363 11963-11963/ D/AppRTCBluetoothManager: startSco: BT state=HEADSET_AVAILABLE, attempts: 1, SCO is on: false
2021-02-16 11:53:31.363 11963-11963/ D/AppRTCBluetoothManager: Starting Bluetooth SCO and waits for ACTION_AUDIO_STATE_CHANGED...
2021-02-16 11:53:31.365 11963-11963/ D/AppRTCBluetoothManager: startTimer
2021-02-16 11:53:31.365 11963-11963/ D/AppRTCBluetoothManager: startScoAudio done: BT state=SCO_CONNECTING, SCO is on: true
2021-02-16 11:53:31.365 11963-11963/ D/AppRTCBluetoothManager: bluetoothTimeout done: BT state=SCO_CONNECTING
2021-02-16 11:53:32.583 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=ON, sb=false, BT state: SCO_CONNECTING
2021-02-16 11:53:32.583 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:53:32.583 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now connected
2021-02-16 11:53:32.583 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:53:32.587 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTED
2021-02-16 11:53:38.170 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=OFF, sb=false, BT state: SCO_CONNECTED
2021-02-16 11:53:38.170 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now disconnected
2021-02-16 11:53:38.170 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:53:38.171 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTED
2021-02-16 11:53:52.118 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_CONNECTION_STATE_CHANGED, s=DISCONNECTED, sb=false, BT state: SCO_CONNECTED
2021-02-16 11:53:52.190 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio: BT state=SCO_CONNECTED, SCO is on: false
2021-02-16 11:53:52.190 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:53:52.191 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio done: BT state=SCO_DISCONNECTING, SCO is on: false
2021-02-16 11:53:52.191 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:53:52.192 11963-11963/ D/AppRTCBluetoothManager: updateDevice
2021-02-16 11:53:52.192 11963-11963/ D/AppRTCBluetoothManager: No connected bluetooth headset
2021-02-16 11:53:52.192 11963-11963/ D/AppRTCBluetoothManager: updateDevice done: BT state=HEADSET_UNAVAILABLE
2021-02-16 11:53:52.198 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=HEADSET_UNAVAILABLE
2021-02-16 11:54:12.281 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_CONNECTION_STATE_CHANGED, s=CONNECTING, sb=false, BT state: HEADSET_UNAVAILABLE
2021-02-16 11:54:12.281 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=HEADSET_UNAVAILABLE
2021-02-16 11:54:12.811 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_CONNECTION_STATE_CHANGED, s=CONNECTED, sb=false, BT state: HEADSET_UNAVAILABLE
2021-02-16 11:54:12.811 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:12.811 11963-11963/ D/AppRTCBluetoothManager: updateDevice
2021-02-16 11:54:12.821 11963-11963/ D/AppRTCBluetoothManager: Connected bluetooth headset: name=SKY Fit ANC100, state=CONNECTED, SCO audio=false
2021-02-16 11:54:12.821 11963-11963/ D/AppRTCBluetoothManager: updateDevice done: BT state=HEADSET_AVAILABLE
2021-02-16 11:54:13.108 11963-11963/ D/AppRTCBluetoothManager: startSco: BT state=HEADSET_AVAILABLE, attempts: 0, SCO is on: false
2021-02-16 11:54:13.108 11963-11963/ D/AppRTCBluetoothManager: Starting Bluetooth SCO and waits for ACTION_AUDIO_STATE_CHANGED...
2021-02-16 11:54:13.113 11963-11963/ D/AppRTCBluetoothManager: startTimer
2021-02-16 11:54:13.114 11963-11963/ D/AppRTCBluetoothManager: startScoAudio done: BT state=SCO_CONNECTING, SCO is on: true
2021-02-16 11:54:13.118 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTING
2021-02-16 11:54:13.981 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=OFF, sb=false, BT state: SCO_CONNECTING
2021-02-16 11:54:13.981 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now disconnected
2021-02-16 11:54:13.981 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:13.982 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTING
2021-02-16 11:54:17.115 11963-11963/ D/AppRTCBluetoothManager: bluetoothTimeout: BT state=SCO_CONNECTING, attempts: 1, SCO is on: false
2021-02-16 11:54:17.117 11963-11963/ D/AppRTCBluetoothManager: SCO is not connected with SKY Fit ANC100
2021-02-16 11:54:17.117 11963-11963/ W/AppRTCBluetoothManager: BT failed to connect after timeout
2021-02-16 11:54:17.117 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio: BT state=SCO_CONNECTING, SCO is on: false
2021-02-16 11:54:17.117 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:54:17.120 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio done: BT state=SCO_DISCONNECTING, SCO is on: false
2021-02-16 11:54:17.120 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:17.120 11963-11963/ D/AppRTCBluetoothManager: updateDevice
2021-02-16 11:54:17.124 11963-11963/ D/AppRTCBluetoothManager: Connected bluetooth headset: name=SKY Fit ANC100, state=CONNECTED, SCO audio=false
2021-02-16 11:54:17.124 11963-11963/ D/AppRTCBluetoothManager: updateDevice done: BT state=HEADSET_AVAILABLE
2021-02-16 11:54:17.406 11963-11963/ D/AppRTCBluetoothManager: startSco: BT state=HEADSET_AVAILABLE, attempts: 1, SCO is on: false
2021-02-16 11:54:17.406 11963-11963/ D/AppRTCBluetoothManager: Starting Bluetooth SCO and waits for ACTION_AUDIO_STATE_CHANGED...
2021-02-16 11:54:17.411 11963-11963/ D/AppRTCBluetoothManager: startTimer
2021-02-16 11:54:17.412 11963-11963/ D/AppRTCBluetoothManager: startScoAudio done: BT state=SCO_CONNECTING, SCO is on: true
2021-02-16 11:54:17.412 11963-11963/ D/AppRTCBluetoothManager: bluetoothTimeout done: BT state=SCO_CONNECTING
2021-02-16 11:54:18.807 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=ON, sb=false, BT state: SCO_CONNECTING
2021-02-16 11:54:18.807 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:54:18.808 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now connected
2021-02-16 11:54:18.808 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:18.809 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTED
2021-02-16 11:54:25.209 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=OFF, sb=false, BT state: SCO_CONNECTED
2021-02-16 11:54:25.209 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now disconnected
2021-02-16 11:54:25.209 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:25.209 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTED
2021-02-16 11:54:52.080 11963-11963/ D/AppRTCBluetoothManager: stop: BT state=SCO_CONNECTED
2021-02-16 11:54:52.081 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio: BT state=SCO_CONNECTED, SCO is on: false
2021-02-16 11:54:52.081 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:54:52.082 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio done: BT state=SCO_DISCONNECTING, SCO is on: false
2021-02-16 11:54:52.083 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:54:52.083 11963-11963/ D/AppRTCBluetoothManager: stop done: BT state=UNINITIALIZED
2021-02-16 11:54:52.084 11963-11963/ D/AppRTCBluetoothManager: stop: BT state=UNINITIALIZED
2021-02-16 11:54:55.259 11963-11963/ D/AppRTCBluetoothManager: create@[name=main, id=2]
2021-02-16 11:54:55.259 11963-11963/ D/AppRTCBluetoothManager: ctor
2021-02-16 11:54:55.283 11963-11963/ D/AppRTCBluetoothManager: start
2021-02-16 11:54:55.284 11963-11963/ D/AppRTCBluetoothManager: BluetoothAdapter: enabled=true, state=ON, name=Pixel 4 XL, address=02:00:00:00:00:00
2021-02-16 11:54:55.285 11963-11963/ D/AppRTCBluetoothManager: paired devices:
2021-02-16 11:54:55.286 11963-11963/ D/AppRTCBluetoothManager: name=재범’s AirPods Pro, address=40:70:F5:E5:51:78
2021-02-16 11:54:55.286 11963-11963/ D/AppRTCBluetoothManager: name=XMZPG, address=50:E6:66:3C:EB:85
2021-02-16 11:54:55.286 11963-11963/ D/AppRTCBluetoothManager: name=LE-Bose NC 700 Headpho, address=4C:87:5D:9E:5F:F5
2021-02-16 11:54:55.287 11963-11963/ D/AppRTCBluetoothManager: name=[AV] Samsung Soundbar Q750R, address=00:7C:2D:B1:20:FC
2021-02-16 11:54:55.287 11963-11963/ D/AppRTCBluetoothManager: name=SKY Fit ANC100, address=22:88:33:02:43:03
2021-02-16 11:54:55.288 11963-11963/ D/AppRTCBluetoothManager: name=SRS-XB10, address=B8:D5:0B:76:CB:52
2021-02-16 11:54:55.291 11963-11963/ D/AppRTCBluetoothManager: HEADSET profile state: CONNECTED
2021-02-16 11:54:55.291 11963-11963/ D/AppRTCBluetoothManager: Bluetooth proxy for headset profile has started
2021-02-16 11:54:55.291 11963-11963/ D/AppRTCBluetoothManager: start done: BT state=HEADSET_UNAVAILABLE
2021-02-16 11:54:55.391 11963-11963/ D/AppRTCBluetoothManager: BluetoothServiceListener.onServiceConnected: BT state=HEADSET_UNAVAILABLE
2021-02-16 11:54:55.391 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:55.391 11963-11963/ D/AppRTCBluetoothManager: updateDevice
2021-02-16 11:54:55.395 11963-11963/ D/AppRTCBluetoothManager: Connected bluetooth headset: name=SKY Fit ANC100, state=CONNECTED, SCO audio=false
2021-02-16 11:54:55.395 11963-11963/ D/AppRTCBluetoothManager: updateDevice done: BT state=HEADSET_AVAILABLE
2021-02-16 11:54:55.396 11963-11963/ D/AppRTCBluetoothManager: startSco: BT state=HEADSET_AVAILABLE, attempts: 0, SCO is on: false
2021-02-16 11:54:55.396 11963-11963/ D/AppRTCBluetoothManager: Starting Bluetooth SCO and waits for ACTION_AUDIO_STATE_CHANGED...
2021-02-16 11:54:55.402 11963-11963/ D/AppRTCBluetoothManager: startTimer
2021-02-16 11:54:55.402 11963-11963/ D/AppRTCBluetoothManager: startScoAudio done: BT state=SCO_CONNECTING, SCO is on: true
2021-02-16 11:54:55.406 11963-11963/ D/AppRTCBluetoothManager: onServiceConnected done: BT state=SCO_CONNECTING
2021-02-16 11:54:55.710 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=OFF, sb=false, BT state: SCO_CONNECTING
2021-02-16 11:54:55.710 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now disconnected
2021-02-16 11:54:55.710 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:55.711 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTING
2021-02-16 11:54:59.403 11963-11963/ D/AppRTCBluetoothManager: bluetoothTimeout: BT state=SCO_CONNECTING, attempts: 1, SCO is on: false
2021-02-16 11:54:59.405 11963-11963/ D/AppRTCBluetoothManager: SCO is not connected with SKY Fit ANC100
2021-02-16 11:54:59.406 11963-11963/ W/AppRTCBluetoothManager: BT failed to connect after timeout
2021-02-16 11:54:59.406 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio: BT state=SCO_CONNECTING, SCO is on: false
2021-02-16 11:54:59.406 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:54:59.407 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio done: BT state=SCO_DISCONNECTING, SCO is on: false
2021-02-16 11:54:59.407 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:59.407 11963-11963/ D/AppRTCBluetoothManager: updateDevice
2021-02-16 11:54:59.409 11963-11963/ D/AppRTCBluetoothManager: Connected bluetooth headset: name=SKY Fit ANC100, state=CONNECTED, SCO audio=false
2021-02-16 11:54:59.409 11963-11963/ D/AppRTCBluetoothManager: updateDevice done: BT state=HEADSET_AVAILABLE
2021-02-16 11:54:59.409 11963-11963/ D/AppRTCBluetoothManager: startSco: BT state=HEADSET_AVAILABLE, attempts: 1, SCO is on: false
2021-02-16 11:54:59.409 11963-11963/ D/AppRTCBluetoothManager: Starting Bluetooth SCO and waits for ACTION_AUDIO_STATE_CHANGED...
2021-02-16 11:54:59.411 11963-11963/ D/AppRTCBluetoothManager: startTimer
2021-02-16 11:54:59.412 11963-11963/ D/AppRTCBluetoothManager: startScoAudio done: BT state=SCO_CONNECTING, SCO is on: true
2021-02-16 11:54:59.412 11963-11963/ D/AppRTCBluetoothManager: bluetoothTimeout done: BT state=SCO_CONNECTING
2021-02-16 11:54:59.937 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=ON, sb=false, BT state: SCO_CONNECTING
2021-02-16 11:54:59.937 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:54:59.937 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now connected
2021-02-16 11:54:59.937 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:54:59.938 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTED
2021-02-16 11:55:07.089 11963-11963/ D/AppRTCBluetoothManager: BluetoothHeadsetBroadcastReceiver.onReceive: a=ACTION_AUDIO_STATE_CHANGED, s=OFF, sb=false, BT state: SCO_CONNECTED
2021-02-16 11:55:07.089 11963-11963/ D/AppRTCBluetoothManager: +++ Bluetooth audio SCO is now disconnected
2021-02-16 11:55:07.089 11963-11963/ D/AppRTCBluetoothManager: updateAudioDeviceState
2021-02-16 11:55:07.090 11963-11963/ D/AppRTCBluetoothManager: onReceive done: BT state=SCO_CONNECTED
2021-02-16 11:55:13.142 11963-11963/ D/AppRTCBluetoothManager: stop: BT state=SCO_CONNECTED
2021-02-16 11:55:13.143 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio: BT state=SCO_CONNECTED, SCO is on: false
2021-02-16 11:55:13.143 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:55:13.144 11963-11963/ D/AppRTCBluetoothManager: stopScoAudio done: BT state=SCO_DISCONNECTING, SCO is on: false
2021-02-16 11:55:13.145 11963-11963/ D/AppRTCBluetoothManager: cancelTimer
2021-02-16 11:55:13.145 11963-11963/ D/AppRTCBluetoothManager: stop done: BT state=UNINITIALIZED
2021-02-16 11:55:13.146 11963-11963/ D/AppRTCBluetoothManager: stop: BT state=UNINITIALIZED