最近在弄双向语音,PC端到采集的声音用VLC接受可以长时间播放,用IPNC接受时只能播放60s。查看之后发现是live->audiorecev->audio-receive.cpp中做了限制,60s就自动切断客户端。有做过这个的朋友吗?
在audio-receive.cpp中这是60s限制的。注释还是几秒自动断开。
if (subsession->rtcpInstance() != NULL) {
subsession->rtcpInstance()->setByeHandler(subsessionByeHandler, subsession);
}
kooking:
选用的算法是不是设置了60S的演示时间,然后自动断开了
zhihua song:
回复 kooking:
live555里面的有算法选择?
Richard Sun:
song 你好,现在在dm8127上弄双向语音,rdk中默认运行wis-streamer是可以把摄像头的语音(mic采集)传输到pc端的(耳机听到),运行(live->audiorecev->audio-receive.cpp)编译生成的audio-receiver (如:/opt/ipnc/audio-receiver rtsp://192.168.1.15:556/female.wav)时,就可以采集到pc上运行的live555 Server的wav文件吗? 默认的audio-receive.cpp文件需要更改吗?怎么实现让speaker播放?(硬件上:aplay female.wav是可以出声音的,证明speaker硬件是好的) 望指教!