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

Fix PulseAudio tunnelling for server running on host, outside network namespace #38

Closed
jamesmcm opened this issue Oct 24, 2020 · 3 comments
Labels
enhancement New feature or request Hacktoberfest Hacktoberfest 2020 recommended important An important issue that should be resolved quickly

Comments

@jamesmcm
Copy link
Owner

See https://wiki.archlinux.org/index.php/PulseAudio#On_the_server

Need to forward TCP port 4713 from host in to network namespace, and then set the host to be the Pulse Audio server address (i.e. 10.200.1.1).

Ideally we'd proxy localhost:4713 inside the namespace to the host address to avoid dealing with setting environment variables every time, but then we need a way of running the TCP proxy inside the namespace itself (currently we run it as part of vopono on the host, outside the namespace).

@jamesmcm jamesmcm added enhancement New feature or request Hacktoberfest Hacktoberfest 2020 recommended important An important issue that should be resolved quickly labels Oct 24, 2020
@jamesmcm
Copy link
Owner Author

Same applies to D-Bus.

@jamesmcm
Copy link
Owner Author

For PulseAudio don't need networking, can use:

PULSE_SERVER="/run/user/1000/pulse/native"

and pass through to all commands with sudo -E both in netns invocation and the command invocation.

Get string from pactl info on host.

@jamesmcm
Copy link
Owner Author

Fixed in #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest Hacktoberfest 2020 recommended important An important issue that should be resolved quickly
Projects
None yet
Development

No branches or pull requests

1 participant