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!