Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get audio #681

Open
yikexiaoshu1 opened this issue Apr 7, 2024 · 2 comments
Open

How to get audio #681

yikexiaoshu1 opened this issue Apr 7, 2024 · 2 comments

Comments

@yikexiaoshu1
Copy link

With this code, we like to get video & audio.But after trying, there is still no audio, the audio stream encoding is aac, what should we do?
webRtcServer.connect("rtsp://172.16.12.50:554/stream","rtsp://172.16.12.50:554/stream");

@zhuya1996
Copy link

zhuya1996 commented Apr 23, 2024

rtsp set audio G711_U

@mpromonet
Copy link
Owner

mpromonet commented Apr 26, 2024

Hello @zhuya1996,

Audio codec support is verified at https://github.com/mpromonet/webrtc-streamer/blob/master/inc/liveaudiosource.h#L94. If it's not supported, you will encounter the error:

LiveAudioSource::onNewSession not support codec

as indicated at https://github.com/mpromonet/webrtc-streamer/blob/master/inc/liveaudiosource.h#L102.

Best Regards,
Michel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants