当前位置:网站首页>How to troubleshoot and solve the problem that the ultra-low delay security live broadcast system webrtc client plays no audio in the browser?

How to troubleshoot and solve the problem that the ultra-low delay security live broadcast system webrtc client plays no audio in the browser?

2022-06-24 17:10:00 Tsingsee green rhino video

By developing webrtc technology , We have achieved low latency live broadcast of the web page , about WebRTC At present, we have completed the development of the large framework , The testing of web pages has been gradually completed ,WebRTC The launch of our website will bring our users a better live experience .

In the test webrtc period , We found that using the browser to print the server feedback data , There is no audio , But using local rtsp There is a sound in the stream .

From the above screenshot, we can see that the feedback from the server is only video , And the browser uses video The audio volume in the tag is also not clickable .

This is definitely a server problem , There is no audio feedback from the server , Browser can't add audio stream , You can only view the server code for analysis . In the process of analysis, it is found that the server also has configuration items , The server does not feed back the audio .

There is config.json Code , There is a section of configuration that has disabled audio .

So we need to take disable_audio Change it to fasle To enable audio .

The data in the browser is modified after printing , With audio :

The buttons for playing audio in the browser are as follows , The volume button is clickable :

Server feedback audio data stream solution .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/03/20210331114152032Z.html