docker-tor-browser icon indicating copy to clipboard operation
docker-tor-browser copied to clipboard

Support for audio

Open lawndoc opened this issue 3 years ago • 5 comments

I created a separate issue from #20 because this goes a different route than what was initially suggested. There is an issue open in NoVNC for audio support, and multiple people have gotten it to work through their own means.

This project seems to be a simple way to get audio working. I might test the method out in my fork and see if I can get something working.

If the above method doesn't work or there's noticeable lag between the video and audio, I'll some other methods from the NoVNC issue thread.

lawndoc avatar Nov 28 '22 16:11 lawndoc

I added sound support to this project before it was upgraded. You might be able to get something useful from https://github.com/davidnewcomb/docker-tor-browser/tree/vlc

I draw your attention to client.any-tcp.conf, pulse-client.linux-native.conf and pulse-default.pa which are the main configuration files for running sound over native linux pulseaudio or over tcp pulseaudio.

davidnewcomb avatar Nov 29 '22 09:11 davidnewcomb

I have upgraded my project inline with this one and added support for sound and VLC: The newer kernel has more support for sound and so it needs slightly less fiddling to get it to work - basically just the pulse audio configuration file.

  1. cp run/pulse-client.any-tcp.conf run/pulse-client.conf
  2. Override options in tor.opts.sh
  3. build

https://github.com/davidnewcomb/docker-tor-browser/blob/vlc2

davidnewcomb avatar Mar 28 '23 00:03 davidnewcomb

Nice work @davidnewcomb! Would you mind opening a PR to this repo from your vlc2 branch?

lawndoc avatar Mar 31 '23 19:03 lawndoc

I have upgraded my project inline with this one and added support for sound and VLC: The newer kernel has more support for sound and so it needs slightly less fiddling to get it to work - basically just the pulse audio configuration file.

  1. cp run/pulse-client.any-tcp.conf run/pulse-client.conf
  2. Override options in tor.opts.sh
  3. build

https://github.com/davidnewcomb/docker-tor-browser/blob/vlc2

I've added a PR with @davidnewcomb's changes in his vlc2 branch (#49).

michaelmcmillan avatar Apr 10 '23 16:04 michaelmcmillan

Thanks @michaelmcmillan . The branch in my repo (vlc2) included a few extra features that I was still working on, e.g. xclip was included in my (original) vlc branch but I've not been able to get it to work with the current iteration (vlc2). It wasn't quite ready to add it to this project yet.

I have created a branch in this repo called vlc with a slightly updated README that is now ready for testing. I have stripped out the xclip, vim and python3 stuff as well because they are not needed here to get vlc/audio working.

There are a couple of extra environment variables that need to be set up to make it work and so it has meant that I've had to change the way we launch docker with a shell script. This change will mean the README may have to change a bit more to make it flow better.

Please take a look and see if you can get it up and running.

davidnewcomb avatar Apr 10 '23 21:04 davidnewcomb