I am trying to launch google chrome via startx on boot with systemd to create an Ubuntu 16.04 browser kiosk (based on this guide). Everything works great, except I am unable to play any videos in the browser.
I have tried installing ubuntu-restricted-extras. I have also tried installing chromium-codecs-ffmpeg and chromium-codecs-ffmpeg-extra. None of this seems to help.
Having said that, when I log into the user on the device and force launch chrome with startx videos do play, but if I close that session and relaunch it, videos stop working.
Is there something I need to run when starting an X server for codecs to be recognized?
Is there some google chrome setting I need to set to use the h264 codecs?
Thanks!
/usr/bin/startx /etc/X11/Xsession /usr/bin/chrome/google-chrome
, which doesn't load videos. When I launch chrome as the user I just run in the terminalstartx google-chrome
. I installed chrome using the .deb package from the download on their website. This was the guide I used http://askubuntu.com/questions/510056/how-to-install-google-chrome. – elfisher Sep 23 '16 at 16:08startx chromium
orstartx firefox
the first time running startx videos will work. Any subsequent application running a new startx X session seem to be unable to play videos. – elfisher Sep 23 '16 at 16:57startx xterm
to keep the same x session, then ran chrome from xterm. The first time I ran chrome from xterm, video worked, but an error was logged to the console,[<date>:ERROR:ffmpeg_demuxer.cc(1510)] OnReadFrameDone result=-541478725 IsMaxMemoryUsageReached=0
. I then quit chrome (but not xterm) and re-ran chrome. This time there was no ffmpeg error, but video wasn't working. – elfisher Sep 23 '16 at 20:26lightdm start
and rungoogle-chrome
I run into the same issue – elfisher Sep 23 '16 at 20:54