在暫停(pause)時,會延遲0.3秒暫停,如果有變速會更明顯能聽到后面的內容。
在seek的時候,會往前多seek0.3秒。
可以通過 AVAudioSessionRouteDescription
判斷音頻是否通過藍牙耳機輸出中,然后獨立處理一下這種情況即可。
- (BOOL)isBluetoothHeadsetOutput {
AVAudioSessionRouteDescription* route = [[AVAudioSession sharedInstance] currentRoute];
for (AVAudioSessionPortDescription* desc in [route outputs]) {
if ([[desc portType] isEqualToString:AVAudioSessionPortBluetoothA2DP])
return YES;
}
return NO;
}