Flowplayer for YouTube

By Delvin Last update Mar 17, 2011 — Installed 4,155 times.


Script Summary: Replaces the default YouTube player with Flowplayer (flowplayer.org). Forked from version 1.2 of Youtube Alternate Video Player by Yansky.

Version: 0.6.3

Copyright: Yansky, Delvin

License: Creative Commons Attribution-Share Alike 3.0 Unported License; http://creativecommons.org/licenses/by-sa/3.0/

Please note: I am no longer developing this any more mainly due to loss of interest and also the official YouTube player is a lot better then it was in the past. If you would like to develop it further feel free. Also, I am sure the video detection code would be useful in many scripts.

-- TODO --

When I learn the Flowplayer APIs and plugins and have time I will try to add:
Support for annotations
Quality selecting
YouTube video link
Other cool interface stuff

Also, if you want to add something, feel free, just send me a patch.
Go read the docs here: http://flowplayer.org/documentation/api/index.html and make something cool!

-- Change log --

0.6.3
Support Firefox 4
Use Flowplayer 3.2.6
Fix CDATA bug (only effects Firefox 4)
Fix race condition (only effects Firefox 4)

0.6.2
Fix bug in embed code

0.6.1
RegExp improvements
Support secure YouTube the right way (sorry about that)
The "fmt" parameter now works with embeds

0.6
Code clean up
Support for secure YouTube
Added some Flowplayer defaults and placeholders for extending
Thumbnails are back
Video scales correctly (preserves aspect ratio)

0.5
Rewrite
Use Flowplayer 3.2.5
The Flowplayer API can now be used, making it easy to extend
Thanks to tecker for hosting Flowplayer
Most code runs on the Window now
Support for YouTube iFrame embeds (in fact, old style embeds are converted to iFrames embeds, it's easier that way)
Enjoy.

0.4.1
Relocate Flowplayer SWF to its new location (Thanks tecker)
Add 1080p High Definition
Clean up code

0.4
Added support for embedded YouTube videos!
Now uses Coral Content Distribution Network for the Flowplayer SWF.

0.3
Added "HD" support. Really, any format can be specified.
Changed format handling to use formaturlmap allowing for format detection.
Added "fmt" query string detection. Meaning you can specify ?v=[video id]&fmt=[quality id] to set a specific video quality. If no parameter is set, it will revert to the highest quality available.
Added annotations detection, does not do anything yet though.

0.2
Use DOM instead of innerHTML (saves about 4 milliseconds!)
Unload YouTube player first to prevent it from starting before Flowplayer can load
Use high quality splash image

0.1
Made a few minor changes to Yansky's Youtube Alternate Video Player script (http://userscripts.org/scripts/show/13955), including fixing sizing issues of the player and video and problems with URIs that have a hash in them.