mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.8k stars 581 forks source link

rtsp://admin:a4451442@192.168.23.202/h265/ch22/main/av_stream How to get audio in html #639

Closed user0568 closed 5 months ago

user0568 commented 7 months ago

webRtcServer4 = new WebRtcStreamer("video4","http://127.0.0.1:8000"); webRtcServer4.connect("rtsp://admin:a4451442@192.168.23.202/h265/ch22/main/av_stream");

如何获取音频

mpromonet commented 7 months ago

Bonjour @user0568,

Je vous remercie pour votre message, mais ne comprenant pas ce que vous dites, il ne m'est pas possible de vous répondre.

Bien cordialement Michel

user0568 commented 7 months ago

image

The front-end page uses the above code, but only the video is played without audio. I use vlc to play both the video and audio. May I ask if WebRtcStreamer cannot decode the audio encoding in the stream

Learners

mpromonet commented 7 months ago

Hi @user0568,

With this code, you will get only video, if you like to get video & audio, you need to give an audio url. You might try

webRtcServer.connect("rtsp://admin:a4451442@192.168.23.202/h265/ch22/main/av_stream","rtsp://admin:a4451442@192.168.23.202/h265/ch22/main/av_stream");

Best Regards, Michel.

richard202205 commented 3 months ago

Hi @user0568,

With this code, you will get only video, if you like to get video & audio, you need to give an audio url. You might try

webRtcServer.connect("rtsp://admin:a4451442@192.168.23.202/h265/ch22/main/av_stream","rtsp://admin:a4451442@192.168.23.202/h265/ch22/main/av_stream");

Best Regards, Michel.

I did what you said but there's still no audio playing. :(