guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.86k stars 236 forks source link

Awww snap - how to get youtube videos working #86

Open LOFer opened 7 years ago

LOFer commented 7 years ago

LOVE this project - thanks so much for it!!!

I am running this on our school reception TV and it has been going fine for a month (staff and parents love it!!) but recently, a few times a day we now get the white screen of doom with the "Aww Snap" message.

The web server is running fine and network connectivity is not a problem as I can connect from another machine so it is something to do with the local (to the Pi) instance of Chromium that is running.

Anyone had this before - how can I fix this? Is it a cache issue and if so, where is the cache stored for this?

Cheers!

0xE1 commented 7 years ago

"Aw, Snap!" have multiple error codes, which one are you getting? https://support.google.com/chrome/answer/95669

All of them are related to network in one way or the other.

guysoft commented 7 years ago

The cache is sorted in:

/home/pi/.config/chromium/Default/Application Cache
/home/pi/.config/chromium/Default/Storage/ext/chrome-signin/def/Cache
/home/pi/.config/chromium/Default/Storage/ext/chrome-signin/def/GPUCache
/home/pi/.config/chromium/Default/GPUCache
/home/pi/.config/chromium/Default/History Provider Cache
/home/pi/.config/chromium/Default/Service Worker/CacheStorage
/home/pi/.config/chromium/Default/Service Worker/ScriptCache
/home/pi/.config/chromium/ShaderCache
/home/pi/.config/chromium/ShaderCache/GPUCache
pablosouza10 commented 7 years ago

Same problem!

Using new FullPageOS RC1 and when run Youtube Video "Aw Snap"

Any fix?

guysoft commented 7 years ago

@pablosouza10 that's a different issue, see #29 webm and flash videos should work. But mp4 is a problem. Also upvote this :) http://raspberrypi.stackexchange.com/questions/59524/chromium-tab-crashes-if-mp4-video-with-gpu-acceleration

pablosouza10 commented 7 years ago

@guysoft , Tks. Now I'm try New Raspbian Pixel, Youtube's hd videos running so much better w/ no modification. Waiting for fix FullPageOs.

guysoft commented 7 years ago

@pablosouza10 Ok I think I understand what they did in Pixel. Pixel comes default WITHOUT GPU accleration. However, it comes per-installed with the h264ify extension. So you can either have GPU enabled and have accelerated canvas. Or disable the GPU and have h264ify decode youtube videos. Also see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=157049.

Update: confirmed. If you want to play youtube videos:

  1. run sudo raspi-config
  2. Select advanced options
  3. Select GL driver
  4. Select legacy
  5. Reboot
  6. Install h264ify extension in chrome (you can open a tab using ctrl-t
  7. Thats it, you should have youtube videos playing in FullPageOS
guysoft commented 7 years ago

Closing if no reply

tailorvj commented 7 years ago

@guysoft Raspberry Pi forum lists a few workarounds for the accelaration problem. Do you think any of them can temporarily solve the problem of accelarated video playback until this issue is taken care of by Raspbian?

clear_uniforms_before_first_program_use (I guess this is a Chromium flag?)

Cheers, Tailor

guysoft commented 7 years ago

@tailorvj Can you please link to a specific solution? I gave a pretty solid one two comments back.