linux sdk, 小程序接通音频电话后没有声音,设备端log如下,帮看下问题
[09:13:42.518][D][WMPF][249:251][components/voip/voip_manager.cc:142][Call]: Calling name:name open_id:ozQFY5DriRbJDhVtf4JsMCBxzcLc
voip_status = 0
audio_open primary device_type 1
open ./h264.h264 fail
open h264.h264 fail
open input.pcm fail
voip_status = 1
audio_open_output_stream user_data=0xb5f00944
sample_rate 8000
channel_layout 2
sample_format 2
frame_count 10
bytes = 2
audio_open_output_stream stream = 0xb5f09d78 return 0xb5f009e8
audio_stream_out_resume
[09:13:43.115][I][WMPF][249:251][components/voip/voip_manager.cc:241][operator()]: ConfService Init begin
[09:13:43.115][I][WMPF][249:251][components/voip/conf_service.cc:915][Init]: VoIP Init Start
wx_wsclient_create
init ws
[09:13:43.138][I][WMPF][249:251][components/voip/conf_service.cc:918][Init]: VoIP Init End
[09:13:43.138][I][WMPF][249:251][components/voip/voip_manager.cc:248][operator()]: ConfService Init end
[09:13:43.138][I][WMPF][249:251][components/voip/voip_manager.cc:175][Call]: JoinRoom begin
wx_wsclient_connectt fd 1
wx_wsclient_send fd 1 size 297
wx_wsclient_send fd 1 size 518
INFO: BINARY=234 bytes
wx_wsclient_send fd 1 size 297
INFO: BINARY=60 bytes
INFO: BINARY=638 bytes
audio_open primary device_type 0
[09:13:43.973][I][WMPF][249:260][components/voip/voip_manager.cc:180][Call]: JoinRoom end
voip_status = 1
INFO: BINARY=60 bytes
INFO: BINARY=604 bytes
wx_wsclient_send fd 1 size 297
audio_open_input_stream user_data=0x4c6964
sample_rate 16000
channel_layout 2
sample_format 2
frame_count 320
bytes = 2
audio_open_input_stream stream = 0x4d8f60 return 0x4d8f98
audio_stream_in_resume
INFO: BINARY=234 bytes
INFO: BINARY=60 bytes
wx_wsclient_send fd 1 size 297
INFO: BINARY=60 bytes
INFO: BINARY=645 bytes
wx_wsclient_send fd 1 size 297
audio_open_output_stream user_data=0x4c663c
sample_rate 16000
channel_layout 2
sample_format 2
frame_count 100
bytes = 2
audio_open_output_stream stream = 0x670a70 return 0x670aa8
audio_stream_out_resume
voip_status = 2
audio_stream_out_flush
audio_stream_out_pause
free out stream 0xb5f09d78
INFO: BINARY=234 bytes
INFO: BINARY=60 bytes
wx_wsclient_send fd 1 size 297
free in stream 0x4d8f60
audio_device_close
audio_stream_out_flush
audio_stream_out_pause
free out stream 0x670a70
audio_device_close
voip_status = 7
[09:14:01.240][I][WMPF][249:260][components/voip/conf_service.cc:1220][OnCallEnd]: OnCallEnd errCode: 0
open ./h264.h264 fail
open h264.h264 fail
open input.pcm fail
看上去你没有在运行目录放置demo的 h264.h264 与 input.pcm 文件。