AudioRecord:start()状态-38在cordova android应用程序中仅在三星s8设备中
我正在基于webRTC在Cordova android中构建一个视频会议应用程序。我正在为getUserMedia使用插件“phonegap插件媒体流”。除三星s8外,所有设备均支持音频。但是,使用三星S8,在静音/取消静音4到5次后,它开始工作 当我查看三星S8的android日志时,我发现了以下内容AudioRecord:start()状态-38在cordova android应用程序中仅在三星s8设备中,android,cordova,webrtc,cordova-plugins,android-audiomanager,Android,Cordova,Webrtc,Cordova Plugins,Android Audiomanager,我正在基于webRTC在Cordova android中构建一个视频会议应用程序。我正在为getUserMedia使用插件“phonegap插件媒体流”。除三星s8外,所有设备均支持音频。但是,使用三星S8,在静音/取消静音4到5次后,它开始工作 当我查看三星S8的android日志时,我发现了以下内容 D/AudioManager: setSpeakerphoneOn true W/AudioManager: Use of stream types is deprecated for oper
D/AudioManager: setSpeakerphoneOn true
W/AudioManager: Use of stream types is deprecated for operations other than volume control
2020-05-18 20:49:49.647 10826-10826/com.example.hello W/AudioManager: See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case
E/AudioRecord: start() status -38
D/AudioManager: requestAudioFocus status : 1
W/AudioManager: Use of stream types is deprecated for operations other than volume control
W/AudioManager: See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case
E/AudioRecord: start() status -38
D/AudioManager: requestAudioFocus status : 1
但在其他手机中,我们没有发现上述错误,音频工作正常