• [TUT] How to install the new JW Player 6.7 in your Gallery 5 0 5 1
Currently:  

Author Topic: [TUT] How to install the new JW Player 6.7 in your Gallery  (Read 16166 times)

0 Members and 1 Guest are viewing this topic.

Offline Rembrandt

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.187
  • Vienna
    • View Profile
    • Vienna Pictures
[TUT] How to install the new JW Player 6.7 in your Gallery
« on: October 11, 2013, 07:06:36 PM »
Hi!

1.) create a new directory in your Gallery root "js/jwplayer", download the jwplayer-6.7.zip from here and copy the three files:
"jwplayer.flash.swf", "jwplayer.html5.js" and "jwplayer.js" in the new directory.

2.) add in ACP/General/Settings/Upload settings/Valid file extensions an new file extension: "flv".

3.) search in includes/upload_definitions.php:

  
die("Security violation");
}

insert below:

$mime_type_match
['flv'] = array("application/x-shockwave-flash""application/octet-stream""video/flv""video/x-flv");


4.) store in "templates/your templates/media"  a new file "flv.html":
Code: [Select]
<script type="text/javascript" src="./js/jwplayer/jwplayer.js" ></script>
<div id="myElement">Loading the player ...</div>
<script type="text/javascript">
    jwplayer("myElement").setup({
        image: '{media_icon}',
        height: 600,
        width: 800,
        autostart: true,
        file: '{media_src}'
    });
</script>

5.) store in "templates/your templates/icons" a new file "flv.gif" (can you download from attachment).

mfg Andi
« Last Edit: February 01, 2014, 10:15:53 PM by Rembrandt »
Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)

Offline Tino23

  • Full Member
  • ***
  • Posts: 190
    • View Profile
    • LMJ - Motorsport
« Last Edit: February 26, 2015, 06:44:57 PM by Tino23 »