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 not working #17

Open
AryanRai opened this issue Jan 6, 2021 · 10 comments
Open

Audio not working #17

AryanRai opened this issue Jan 6, 2021 · 10 comments

Comments

@AryanRai
Copy link

AryanRai commented Jan 6, 2021

So basically everything is working perfectly except for there is no sound on any site:(
Any solution
I am a noob please give me noob friendly instructions.
One more thing I am using it on a raspberry Pi

@pranavr2003
Copy link

@AryanRai I know this is late, but did you find a fix?

@AryanRai
Copy link
Author

Unfortunately no...

@AryanRai AryanRai reopened this Aug 18, 2021
@edlingao
Copy link

edlingao commented Aug 26, 2021

Hey guys! I was having the same issue but I found a workaround

I wrote a script named chrm which only contains the instructions to run the image after creating the volume (AKA)

sudo docker pull hthiemann/docker-chromium-armhf
sudo docker run --rm --privileged
-e DISPLAY=unix$DISPLAY
-v chromium_home:/home
-v /tmp/.X11-unix:/tmp/.X11-unix
-v /dev:/dev -v /run:/run
-v /etc/machine-id:/etc/machine-id
--ipc=host
--device /dev/dri
--group-add video
hthiemann/docker-chromium-armhf

and then gave that same script executing privileges

sudo install -m 755 chrm /usr/local/bin

and then just

sudo chrm

And now I have sound! I hope this helps

@AryanRai
Copy link
Author

thanks ill try this and get back

@edlingao
Copy link

edlingao commented Sep 1, 2021

How did It go?

@pranavr2003
Copy link

@edlingao Mate I tried your script (except I pasted directly in terminal instead of creating a file for it)

root@spurs-desktop:/home/spurs/docker-chromium-armhf# sudo docker pull hthiemann/docker-chromium-armhf
sudo docker run --rm --privileged
-e DISPLAY=unix$DISPLAY
-v chromium_home:/home
-v /tmp/.X11-unix:/tmp/.X11-unix
-v /dev:/dev -v /run:/run
-v /etc/machine-id:/etc/machine-id
--ipc=host
--device /dev/dri
--group-add video
hthiemann/docker-chromium-armhf
Using default tag: latest
latest: Pulling from hthiemann/docker-chromium-armhf
Digest: sha256:bed8681f9fc9a9b869ade0748d14f4d84023a0837407493207d2d068ee24a145
Status: Image is up to date for hthiemann/docker-chromium-armhf:latest
docker.io/hthiemann/docker-chromium-armhf:latest
"docker run" requires at least 1 argument.
See 'docker run --help'.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Run a command in a new container
-e: command not found
-v: command not found
-v: command not found
-v: command not found
-v: command not found
--ipc=host: command not found
--device: command not found
--group-add: command not found
bash: hthiemann/docker-chromium-armhf: No such file or directory

This is what I'm getting

@edlingao
Copy link

edlingao commented Sep 7, 2021

@pranavr2003 try deleting all the line jumps
That or creating the .sh file xD, it's going to be better as you'll need to run that command every time you try to open this chromium-browser

@JospehCeh
Copy link

Hello, so I have audio but not over bluetooth, even though the rest of my system sound can be heard on my bluetooth speaker (e.g. sound from youtube or radio on the regular firefox). Any idea on how to fix this please?

@pranavr2003
Copy link

@JospehCeh Maybe you can check your audio output settings from the terminal? Check your available audio outputs and put that number in with nano. I don't remember the file you have to edit off the bat, but you can Google that. I've tweaked with it before, should work.

As for Firefox, Firefox doesn't really give sound on the Pi. This is a known issue that happened when the Pi devs switched Rpi-OS switched to PulseAudio. There is a workaround though, that I had discovered only recently. Install the extension 'User Agent Switcher', and switch to any agent you like and test if audio is coming out of it. For YouTube, I've found iPhone/Safari to be the best. Note that you can switch agents specific to domains, and not have to switch them everytime you wat to. Just set it default for that domain.

As for your general query, this isn't the best place to ask, really. This is a Chromium implementation on Docker that has nothing to do with Firefox. Please find other forums (forums.raspberrypi.org or the Firefox forum) for this.

@wjgeorge
Copy link

wjgeorge commented May 3, 2022

found this. just the first time that docker is inited,

moby/moby#26799

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

5 participants