Jump to content
stemmo

Play mp3 files on Chromium

Recommended Posts

Hi all,

tinkerboard 1 and Linaro Stretch OS:

root@tinkerboard:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.3 (stretch)
Release:        9.3
Codename:       stretch
 

root@tinkerboard:~# chromium --version
Chromium 63.0.3239.84 built on Debian 9.3, running on Debian 9.3

 

We developed a web page that plays a MP3 triggered by javascript command:  new Audio('mp3/'+sound).play();

It happens that when we automatically launch the browser after the boot by a script, the sounds are not played - no errors in js console and dmesg output.

When we launch the same script from a terminal (same user = linaro) the sounds are played!

We don't understand why!

I only see a slightly different process (the last one) related to chromium:

 

NO PLAY
root@tinkerboard:~# ps axu | grep chrom
linaro    1253  4.9  3.6 543976 74340 ?        Sl   10:12   0:27 /usr/lib/chromium/chromium --load-extension=/home/linaro/h264ify --show-component-extension-options --ignore-gpu-blacklist --disable-background-networking --use-gl=egl --enable-remote-extensions --enable-remote-extensions --enable-logging --v=1 --remote-debugging-port=9222 --kiosk --disable-session-crashed-bubble --disable-infobars --disable-pinch --overscroll-history-navigation=0 --no-sandbox http://localhost/Amtek-Kiosk/trunk/rebootPageEliminacode.php
linaro    1390  0.0  1.5 176308 32884 ?        S    10:12   0:00 /usr/lib/chromium/chromium --type=zygote --enable-logging --no-sandbox --v=1
linaro    1503  2.1  3.2 320480 67068 ?        Sl   10:12   0:11 /usr/lib/chromium/chromium --type=gpu-process --field-trial-handle=5914297866112838827,9098102165092584380,131072 --enable-logging --no-sandbox --v=1 --ignore-gpu-blacklist --disable-breakpad --use-gl=egl --gpu-vendor-id=0x0000 --gpu-device-id=0x0000 --gpu-driver-vendor=ES --gpu-driver-version=3.1 --gpu-driver-date --enable-logging --v=1 --service-request-channel-token=29D19D8ECD96887F1215C7EDE8F1C361
linaro    1651 10.5  4.1 414432 86472 ?        Sl   10:12   0:57 /usr/lib/chromium/chromium --type=renderer --disable-pinch --enable-logging --no-sandbox --use-gl=egl --v=1 --field-trial-handle=5914297866112838827,9098102165092584380,131072 --service-pipe-token=123B90E382BCAD92E799289B0C95FCFA --lang=en-US --disable-client-side-phishing-detection --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=2 --enable-main-frame-before-activation --enable-gpu-async-worker-context --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;0,16,3553;0,17,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;1,16,3553;1,17,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;2,16,3553;2,17,3553;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,3553;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,3553;3,13,3553;3,14,3553;3,15,3553;3,16,3553;3,17,3553;4,0,3553;4,1,3553;4,2,3553;4,3,3553;4,4,3553;4,5,3553;4,6,3553;4,7,3553;4,8,3553;4,9,3553;4,10,3553;4,11,3553;4,12,3553;4,13,3553;4,14,3553;4,15,3553;4,16,3553;4,17,3553;5,0,3553;5,1,3553;5,2,3553;5,3,3553;5,4,3553;5,5,3553;5,6,3553;5,7,3553;5,8,3553;5,9,3553;5,10,3553;5,11,3553;5,12,3553;5,13,3553;5,14,3553;5,15,3553;5,16,3553;5,17,3553;6,0,3553;6,1,3553;6,2,3553;6,3,3553;6,4,3553;6,5,3553;6,6,3553;6,7,3553;6,8,3553;6,9,3553;6,10,3553;6,11,3553;6,12,3553;6,13,3553;6,14,3553;6,15,3553;6,16,3553;6,17,3553 --service
root      2811  0.0  0.0   3840   576 pts/0    S+   10:21   0:00 grep chrom

-----

PLAY OK
root@tinkerboard:/var/www/Amtek-Kiosk/trunk# ps axu | grep chrom
linaro    3462  8.4  3.5 765184 73932 pts/1    Sl+  10:43   0:04 /usr/lib/chromium/chromium --load-extension=/home/linaro/h264ify --show-component-extension-options --ignore-gpu-blacklist --disable-background-networking --use-gl=egl --enable-remote-extensions --enable-remote-extensions --enable-logging --v=1 --remote-debugging-port=9222 --kiosk --disable-session-crashed-bubble --disable-infobars --disable-pinch --overscroll-history-navigation=0 --no-sandbox http://localhost/Amtek-Kiosk/trunk/rebootPageEliminacode.php
linaro    3473  0.4  1.6 176312 33576 pts/1    S+   10:43   0:00 /usr/lib/chromium/chromium --type=zygote --enable-logging --no-sandbox --v=1
linaro    3568  5.6  3.3 317084 68748 pts/1    Sl+  10:43   0:02 /usr/lib/chromium/chromium --type=gpu-process --field-trial-handle=285003390153957612,1327819821863676581,131072 --enable-logging --no-sandbox --v=1 --ignore-gpu-blacklist --disable-breakpad --use-gl=egl --gpu-vendor-id=0x0000 --gpu-device-id=0x0000 --gpu-driver-vendor=ES --gpu-driver-version=3.1 --gpu-driver-date --enable-logging --v=1 --service-request-channel-token=0746B9B94B76D766745AD488ED15737E
linaro    3657 15.2  3.7 385852 78372 pts/1    Sl+  10:43   0:07 /usr/lib/chromium/chromium --type=renderer --disable-pinch --enable-logging --no-sandbox --use-gl=egl --v=1 --field-trial-handle=285003390153957612,1327819821863676581,131072 --service-pipe-token=84B235C084776E7C8CB592E8898C9600 --lang=en-US --disable-client-side-phishing-detection --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=2 --enable-main-frame-before-activation --enable-gpu-async-worker-context --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;0,16,3553;0,17,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;1,16,3553;1,17,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;2,16,3553;2,17,3553;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,3553;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,3553;3,13,3553;3,14,3553;3,15,3553;3,16,3553;3,17,3553;4,0,3553;4,1,3553;4,2,3553;4,3,3553;4,4,3553;4,5,3553;4,6,3553;4,7,3553;4,8,3553;4,9,3553;4,10,3553;4,11,3553;4,12,3553;4,13,3553;4,14,3553;4,15,3553;4,16,3553;4,17,3553;5,0,3553;5,1,3553;5,2,3553;5,3,3553;5,4,3553;5,5,3553;5,6,3553;5,7,3553;5,8,3553;5,9,3553;5,10,3553;5,11,3553;5,12,3553;5,13,3553;5,14,3553;5,15,3553;5,16,3553;5,17,3553;6,0,3553;6,1,3553;6,2,3553;6,3,3553;6,4,3553;6,5,3553;6,6,3553;6,7,3553;6,8,3553;6,9,3553;6,10,3553;6,11,3553;6,12,3553;6,13,3553;6,14,3553;6,15,3553;6,16,3553;6,17,3553 --service-request-channel-token=84B235C084776E7C8CB592E8898C9600 --renderer-client-id=3 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101,v8_snapshot_data:102
root      4001  0.0  0.0   3840   556 pts/0    S+   10:44   0:00 grep chrom

 

Any idea?

Thanks

Share this post


Link to post
Share on other sites

hello @stemmo

we've tried and cannot reproduce the issue. what commands did you execute? and what's the os/ image version you're using?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...