1st get your K2 running as you normally would with the normal Allvideos plug in working.
Next download the current version of the JWplayer (5.4) at
www.longtailvideo.com/
(note: make backups of anything your replace below)
Go to your allvideos plug in area located here:
yoursite/plugins/content/jw_allvideos/includes/players/mediaplayer/
and replace the player.swf with the new one
Add the yt.swf to the same directory
Add the Jwplayer.js and swfobjct.js to wherever you want (I did in root) and call these scripts from your template (as you would any script)
Okay files are in place
Now go to the sources.php file under yoursite/plugins/content/jw_allvideos/includes (make a copy)
and make these alterations:
You will note the player used is based on the extension you upload - so if you upload an FLV file it will use the "flv" section of the code. If you search for "mp4" you will see its using quicktime to run the movie.
Change the MP4 code from what it currently is to the following: (between the *****)
*****
"mp4" => "
<div id=\"container\">Loading the player ...</div>
<script type=\"text/javascript\">
jwplayer(\"container\").setup({
autostart: {AUTOPLAY},
height: {HEIGHT},
width: {WIDTH},
file: \"{SITEURL}/{FOLDER}/{SOURCE}.mp4\",
image: \"{SITEURL}/images/video.png\",
players: [
{ type: \"flash\", src: \"{SITEURL}/plugins/content/jw_allvideos/includes/players/mediaplayer/player.swf\" },
{ type: \"html5\" }
]
});
</script>
",
*******
Note: I have a default video image I use for videos set in the code {SITEURL}/images/video.png - so that there is not just a black screen - otherwise make sure you have an image in your first frame of your video and then you can take the code out.
That should do it.