On-demand Youtube embedded player

Hugely improves load speed of pages with lots of embedded Youtube videos by instantly showing clickable and immediately accessible placeholders, then the thumbnails are loaded in background.

Ekde 2015/05/13. Vidu La ĝisdata versio.

Aŭtoro
woxxom
Ratings
0 0 0
Versio
1.0.9
Kreita
2015/04/16
Ĝisdatigita
2015/05/13
Size
13,3 kb
Licenco
MIT
Aplikiĝas al
Ĉiuj retejoj

Tested on Chrome 43 and Firefox 38.

The script hugely improves load speed of pages with lots of embedded Youtube videos by instantly showing clickable and immediately accessible placeholders, then the thumbnails are loaded in background.

  1. Click the thumbnail to play the video in a standard Youtube embedded player with a full-screen button
  2. Shift-click to play as HTML5 video directly, 720p is automatically selected if available.
  3. There's also a link to open the video page on Youtube.
  4. Last used volume is remembered for the native HTML5 player
  5. Video thumbnail is resized to fit available width, toggled by a checkbox in the right bottom corner.