we have released a package, called pivid, which allows you to start YouTube (and some HTML5) videos from Midori or Chromium. The package is in our repository server, easy to install. It is currently in a beta stadium, some things still need fixing.
Please have a look at my blog post about this:
http://blog.pi3g.com/2013/08/bringing-y ... -browsers/
Roughly, it functions like this:
* A node.js webserver is set up on port 3000
* A userscript is installed in Chromium or Midori (or both)
* The userscript forwards the URL of the YouTube site to the node.js webserver by opening it in an iFrame
* node.js instructs omxplayer to open the videostream (the location of which is calculated using youtube-dl)
-> a window opens, playing back the video. You can control it using omxplayer's keyboard controls (space = play/pause, volume, exit) - unfortunately no seeking.
Please note, that the pivid server has to be started manually after each reboot - we are investigating, why update-rc.d pivid defaults does not work (i.e. the video does not play).
The script also does VeeHD, if some of you know that video platform.
Looking forward to your feedback!