vowor

Results 1 issues of vowor

老师们,我现在通过对WVP的二次开发想实现摄像头和WebRTC的语音对讲功能,目前设备没有声音输出,希望有大师们能协助解决下,非常感谢各位,参考作者提供的如下流程: startSendRtp接口已经新增参数recv_stream_id, 用于指定接收流的流id。 使用方法如下: 1、用webrtc推流给zlmediakit. 2、sip控制设备双向对讲。 3、调用zlmediakit的startSendRtp接口(指定recv_stream_id参数),把webrtc推流的这路流再推给设备。 4、设备发送rtp给zlmediaikit startSendRtp接口创建的端口(也就是用于发送和接收rtp的端口)。 5、zlmediakit收到设备发送的rtp,生成新的一路流,流id为recv_stream_id参数指定。 6、使用webrtc协议或其他协议播放rtp/recv_stream_id这路流。 本方案全程不需要调用openRtpServer接口。 我自己的实现流程如下: 一、WebRTC推送语音流到ZLMediakit。 ![image](https://user-images.githubusercontent.com/25870084/216214369-1c23b432-f3a4-49f3-9918-dedf3a8c835f.png) 二、WVP向摄像头设备下发SIP Broadcast 指令 ![image](https://user-images.githubusercontent.com/25870084/216214987-55af4690-6058-4a52-8707-3a53984554bf.png) 三、设备携带SDP信息向WVP平台发送Invite消息 ![image](https://user-images.githubusercontent.com/25870084/216215321-3f0e0c94-4653-412c-a1a4-d035149e75f5.png) 四、调用zlmediakit的startSendRtp接口/index/api/startSendRtp ![image](https://user-images.githubusercontent.com/25870084/216215729-97a6ed3e-fcdf-4c92-9983-f6c121756183.png) 五、WVP平台响应设备的Invite消息,携带SDP信息 ![image](https://user-images.githubusercontent.com/25870084/216216062-522c1110-a0b1-41a8-8041-d389845a767a.png) 六、连续收到设备发送的ACK消息和BYE消息 ![image](https://user-images.githubusercontent.com/25870084/216216748-aa118009-bf4a-4fad-879f-46832978f31f.png) ![image](https://user-images.githubusercontent.com/25870084/216216792-4a7aad49-56a4-4080-be6c-cced6e76c7ac.png)

技术咨询