Read the statement by Michael Teeuw here.
MMM-iFrame-Ping - revisited
-
Hi,
I’m streaming video/music from a web but, for some reason, the audio doesn’t go through on a P0 it does on a P4 using the same config, however,
Youtube and audio tests pass on both pies.
Is there any reason for that?
TIA -
@ebolisa on a pi0 you are running chromium-browser, on a pi4, u are using electron js browser
i suspect u have to do some setup on chromium
see the 4th post here
https://www.raspberrypi.org/forums/viewtopic.php?t=291066add the parm to the invocation of chromium in ~/MagicMirror/run-start.sh
-
@sdetweil you mean in line 78?
chromium-browser -noerrdialogs -kiosk -start_maximized --disable-features=AudioServiceSandbox --disable-infobars --app=...
the other way I get an error:
pi@magicmirror:~/MagicMirror $ chromium-browser --disable-features=AudioServiceSandbox [1974:1974:0216/221501.872136:ERROR:browser_main_loop.cc(1432)] Unable to open X display.
-
@ebolisa correct.
the second way probably fails because u are on an ssh session, and need to define the DISPLAY to use
export DISPLAY=:0
-
I also stream YouTube videos but I don’t !!! want to hear any sound. Does the module regularly play no sound?
-
@kamischami according to this,
https://peter.sh/experiments/chromium-command-line-switches/
the
–mute-audio
parm should mute any audio
-
@sdetweil making progress by tweaking a bit the line shown above to
chromium-browser --autoplay-policy=no-user-gesture-required --noerrdialogs --incognito --kiosk -start_maximized --disable-features=AudioServiceSandbox --disable-infobars --app=...
However, streaming video on a P0 is not the best way to go so, I decided to just stream audio with this link http://stream-uk1.radioparadise.com/mp3-192. It’s much easer on buffering ;)
-
@ebolisa pi 0 is tough to of a lot different things at once