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

Audio device initialization failed in docker #644

Open
pengchanglu opened this issue Nov 23, 2023 · 2 comments
Open

Audio device initialization failed in docker #644

pengchanglu opened this issue Nov 23, 2023 · 2 comments

Comments

@pengchanglu
Copy link

image

Describe the bug
Docker startup will report an error in the Windows environment, resulting in RTSP being unusable

To Reproduce
Steps to reproduce the behavior:
docker run -p 8000:8000 -it mpromonet/webrtc-streamer
See error

HTTP Listen at 0.0.0.0:8000
[000:000][1] (audio_device_pulse_linux.cc:1605): failed to connect context, error=-1
[000:000][1] (audio_device_pulse_linux.cc:145): failed to initialize PulseAudio
[000:000][1] (audio_device_impl.cc:341): Audio device initialization failed.

open url http://localhost:8000/webrtcstreamer.html?video=rtsp://admin:[email protected]:554/Streaming/Channels/101 failed.

@pengchanglu
Copy link
Author

cd /html
cat webrtcConfig.js

echo var webrtcConfig = { >> webrtcConfig.js
echo url: "", >> webrtcConfig.js
echo options: "rtptransport=tcp&timeout=60", >> webrtcConfig.js
echo layoutextraoptions: "&width=320&height=0", >> webrtcConfig.js
echo defaultvideostream: "Bunny" >> webrtcConfig.js
echo } >> webrtcConfig.js

open url http://localhost:8000/webrtcstreamer.html?video=rtsp://admin:[email protected]:554/Streaming/Channels/101 success !

@pengchanglu
Copy link
Author

cd /html cat webrtcConfig.js

echo var webrtcConfig = { >> webrtcConfig.js echo url: "", >> webrtcConfig.js echo options: "rtptransport=tcp&timeout=60", >> webrtcConfig.js echo layoutextraoptions: "&width=320&height=0", >> webrtcConfig.js echo defaultvideostream: "Bunny" >> webrtcConfig.js echo } >> webrtcConfig.js

open url http://localhost:8000/webrtcstreamer.html?video=rtsp://admin:[email protected]:554/Streaming/Channels/101 success !

Missing webrtcconfig.js file

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

No branches or pull requests

2 participants