Recommitted the ukplayer. Licence information in extras/ukplayer/licence.txt
This commit is contained in:
parent
0a9abf93d9
commit
8aea44334b
11 changed files with 503 additions and 0 deletions
47
www/extras/ukplayer/config.xml
Normal file
47
www/extras/ukplayer/config.xml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<config>
|
||||
<content_url>content.xml</content_url>
|
||||
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
<background_color>0xE0E0E0</background_color>
|
||||
<default_duration>5</default_duration>
|
||||
<default_slidewidth>400</default_slidewidth>
|
||||
<default_slideheight>300</default_slideheight>
|
||||
|
||||
<font>Verdana</font>
|
||||
<font_size>12</font_size>
|
||||
<font_color>0xFFFFFF</font_color>
|
||||
|
||||
<text_border_color>0x888888</text_border_color>
|
||||
<text_bg_color>0x000000</text_bg_color>
|
||||
<text_autohide>true</text_autohide>
|
||||
<text_display>over</text_display> <!--over|above|none-->
|
||||
<text_height>0</text_height>
|
||||
|
||||
<controls_color>0xFFFFFF</controls_color>
|
||||
<controls_border_color>0x888888</controls_border_color>
|
||||
<controls_bg_color>0x000000</controls_bg_color>
|
||||
<controls_autohide>true</controls_autohide>
|
||||
|
||||
<playbutton_percent_width>20</playbutton_percent_width>
|
||||
<playbutton_max_width>200</playbutton_max_width>
|
||||
|
||||
<thumbnail_width>60</thumbnail_width>
|
||||
<thumbnail_height>45</thumbnail_height>
|
||||
<thumbnail_border_color>0x888888</thumbnail_border_color>
|
||||
<thumbnails_hide>false</thumbnails_hide>
|
||||
<menu_autohide>true</menu_autohide>
|
||||
<menu_dead_zone_width>100</menu_dead_zone_width>
|
||||
<menu_gaps>8</menu_gaps>
|
||||
|
||||
<sound>off</sound> <!-- on|off -->
|
||||
<mute_at_start>false</mute_at_start>
|
||||
<autostart>true</autostart>
|
||||
<autopause>false</autopause>
|
||||
<loop>true</loop>
|
||||
<error_message_content><![CDATA[XML not found: ]]></error_message_content>
|
||||
<error_message_image><![CDATA[Image not found]]></error_message_image>
|
||||
|
||||
<skin>rounded</skin> <!--simple|rounded-->
|
||||
</config>
|
||||
25
www/extras/ukplayer/content.xml
Normal file
25
www/extras/ukplayer/content.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<content>
|
||||
<slides>
|
||||
<slide>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
<title><![CDATA[Slide One]]></title>
|
||||
<description><![CDATA[This is the United Knowledge Player for WebGUI!]]></description>
|
||||
<image_source>dummycontent/explain.jpg</image_source>
|
||||
<duration>5</duration>
|
||||
<thumb_source>dummycontent/explain.jpg</thumb_source>
|
||||
<sound_source></sound_source>
|
||||
</slide>
|
||||
<slide>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
<title><![CDATA[Slide Two]]></title>
|
||||
<description><![CDATA[This is the United Knowledge Player for WebGUI!]]></description>
|
||||
<image_source>dummycontent/united-knowledge-logo.jpg</image_source>
|
||||
<duration>5</duration>
|
||||
<thumb_source>dummycontent/united-knowledge-logo.jpg</thumb_source>
|
||||
<sound_source></sound_source>
|
||||
</slide>
|
||||
</slides>
|
||||
</content>
|
||||
BIN
www/extras/ukplayer/dummycontent/explain.jpg
Normal file
BIN
www/extras/ukplayer/dummycontent/explain.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
BIN
www/extras/ukplayer/dummycontent/transporter.mp3
Normal file
BIN
www/extras/ukplayer/dummycontent/transporter.mp3
Normal file
Binary file not shown.
BIN
www/extras/ukplayer/dummycontent/united-knowledge-logo.jpg
Normal file
BIN
www/extras/ukplayer/dummycontent/united-knowledge-logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
www/extras/ukplayer/expressInstall.swf
Normal file
BIN
www/extras/ukplayer/expressInstall.swf
Normal file
Binary file not shown.
63
www/extras/ukplayer/licence.txt
Normal file
63
www/extras/ukplayer/licence.txt
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
The UKPLayer is licensed under the terms of the GNU General Public License, version 2
|
||||
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
||||
|
||||
SWFObject 2, the code used to display the Slideshow, is licensed under the MIT License
|
||||
http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
The UKPlayer makes use of three libraries that are compatible with GPL v.2. These are:
|
||||
|
||||
PureMVC (Creative Commons Attribution Licence 3.0)
|
||||
http://puremvc.org/
|
||||
|
||||
Tweener (BSD Licence)
|
||||
http://code.google.com/p/tweener/wiki/License
|
||||
|
||||
Hydrotik (licence see below)
|
||||
http://blog.hydrotik.com/
|
||||
/*
|
||||
|
||||
* Copyright 2007-2008 (c) Donovan Adams, http://blog.hydrotik.com/
|
||||
|
||||
*
|
||||
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
|
||||
* obtaining a copy of this software and associated documentation
|
||||
|
||||
* files (the "Software"), to deal in the Software without
|
||||
|
||||
* restriction, including without limitation the rights to use,
|
||||
|
||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
|
||||
* copies of the Software, and to permit persons to whom the
|
||||
|
||||
* Software is furnished to do so, subject to the following
|
||||
|
||||
* conditions:
|
||||
|
||||
*
|
||||
|
||||
* The above copyright notice and this permission notice shall be
|
||||
|
||||
* included in all copies or substantial portions of the Software.
|
||||
|
||||
*
|
||||
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
*/
|
||||
283
www/extras/ukplayer/readme.txt
Normal file
283
www/extras/ukplayer/readme.txt
Normal file
|
|
@ -0,0 +1,283 @@
|
|||
United Knowledge Slideshow Player - readme.txt
|
||||
|
||||
Copyright: United Knowledge, 2009
|
||||
|
||||
The Slideshow PLayer is licensed under the terms of the GNU General Public License, version 2
|
||||
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
||||
|
||||
SWFObject 2, the code used to display the Slideshow, is licensed under the MIT License
|
||||
http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* *
|
||||
* The configuration XML *
|
||||
* *
|
||||
**********************************************************************************************
|
||||
|
||||
With the configuration .xml file you can customize the look and the behaviour of the
|
||||
slideshow. It contains the following properties (the values are example values; there are
|
||||
default values for most, but we recommend setting ALL properties yourself).
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Structure of the xml *
|
||||
**********************************************************************************************
|
||||
|
||||
<config>
|
||||
[properties go here]
|
||||
</config>
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* General properties *
|
||||
**********************************************************************************************
|
||||
|
||||
<content_url>/someUrl/someXmlFile.xml</content_url>
|
||||
The url to the .xml file that contains the content.
|
||||
Value: an absolute or relative url to an xml file
|
||||
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
The width and height of the player itself (this value is overwritten by the flashVars
|
||||
but the tags need to be here).
|
||||
Value: number in px
|
||||
|
||||
<default_duration>8</default_duration>
|
||||
The duration of each slide. This can be overwritten by setting the duration per slide
|
||||
in the content .xml file.
|
||||
Value: number in seconds
|
||||
|
||||
<default_slidewidth>400</default_slidewidth>
|
||||
<default_slideheight>300</default_slideheight>
|
||||
If the width or height of a slide is larger than the values specified here, the slide
|
||||
will be resized proportionally. Slides that are smaller than the slidshow will not be
|
||||
resized.
|
||||
Value: number in px
|
||||
|
||||
<background_color>0xeeeeee</background_color>
|
||||
The background color for the slideshow. This will be visible during the transitions
|
||||
and when a slide is smaller than the slideshow.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<skin>rounded</skin>
|
||||
The textarea, controls and thumbnails can be displayed with two different skins.
|
||||
Value: simple or rounded
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Text properties *
|
||||
**********************************************************************************************
|
||||
|
||||
<font>Verdana</font>
|
||||
The font of the text in the slideshow.
|
||||
Value: Verdana, Arial or TimesNewRoman
|
||||
|
||||
<font_size>12</font_size>
|
||||
The font size of the text in the slideshow.
|
||||
Value: number in px
|
||||
|
||||
<font_color>0xffffff</font_color>
|
||||
The color of the text in the slideshow.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<text_border_color>0xffffff</text_border_color>
|
||||
The color of the border of the textarea.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<text_bg_color>0x000000</text_bg_color>
|
||||
The background color of the textarea.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<text_autohide>false</text_autohide>
|
||||
When set to true the textarea will hide after a few seconds.
|
||||
Value: true or false
|
||||
|
||||
<text_display>over</text_display>
|
||||
The textarea can be postioned over the slides, above the slides (the height of the player
|
||||
should be the sum of the height of the slides and the height of the textarea) or can be
|
||||
hidden.
|
||||
Value: over, above or none
|
||||
|
||||
<text_height>50</text_height>
|
||||
The minimum height of the textarea.
|
||||
Value: number in px
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Controls properties *
|
||||
**********************************************************************************************
|
||||
|
||||
<controls_color>0xffffff</controls_color>
|
||||
The color of the buttons.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<controls_border_color>0xffffff</controls_border_color>
|
||||
The color of the border of the area with the buttons.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<controls_bg_color>0x000000</controls_bg_color>
|
||||
The background color of the area with the buttons.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<controls_autohide>true</controls_autohide>
|
||||
When set to true the controls will hide after a few seconds.
|
||||
Value: true or false
|
||||
|
||||
<playbutton_percent_width>20</playbutton_percent_width>
|
||||
The width of the big play button (which appears when auto_start is false and, if loop is
|
||||
set to false, after the slideshow has finished) can be set in a percentage of the total
|
||||
width of the movie.
|
||||
Value: percentage of movie width
|
||||
|
||||
<playbutton_max_width>200</playbutton_max_width>
|
||||
A maximum width for the play button to prevent it from becoming too large.
|
||||
Value: number in px
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Thumbnail properties *
|
||||
**********************************************************************************************
|
||||
|
||||
<thumbnail_width>40</thumbnail_width>
|
||||
<thumbnail_height>30</thumbnail_height>
|
||||
The height and width of each thumbnail image in the bar at the bottom of the
|
||||
slideshow.
|
||||
Value: number in px
|
||||
|
||||
<thumbnail_border_color>0x888888</thumbnail_border_color>
|
||||
The color of the border of each thumbnail image.
|
||||
Value: 0x followed by hexadecimal color
|
||||
|
||||
<menu_autohide>true</menu_autohide>
|
||||
When set to true the thumbnail bar will hide after a few seconds.
|
||||
Value: true or false
|
||||
|
||||
<menu_dead_zone_width>160</menu_dead_zone_width>
|
||||
The width of the area in the center of the thumbnail bar in which the user can hover
|
||||
the mouse, without the thumbnail bar moving to the left or to the right.
|
||||
Value: number in px
|
||||
|
||||
<menu_gaps>6</menu_gaps>
|
||||
The width of the gap between two thumbnail images.
|
||||
Value: number in px
|
||||
|
||||
<thumbnails_hide>false</thumbnails_hide>
|
||||
When set to true, the thumbnails are hidden.
|
||||
Value: true or false
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Behaviour properties *
|
||||
**********************************************************************************************
|
||||
|
||||
<mute_at_start>true</mute_at_start>
|
||||
If true the slideshow will start with the sound muted.
|
||||
Value: true or false
|
||||
|
||||
<sound>off</sound>
|
||||
If the sound is turned off, the audio files will not be played and the mute and volume
|
||||
controls will be hidden.
|
||||
Value: on or off
|
||||
|
||||
<autostart>false</autostart>
|
||||
If true the slideshow will start upon loading. If false a play button will be
|
||||
displayed.
|
||||
Value: true or false
|
||||
|
||||
<autopause>true</autopause>
|
||||
If true the slideshow will pause when clicking on a thumbnail or clicking the
|
||||
previous or next buttons.
|
||||
Value: true or false
|
||||
|
||||
<loop>false</loop>
|
||||
If true the slideshow will loop. If false, when the last slide has been displayed,
|
||||
the slideshow will move back to the first slide and show a play button.
|
||||
Value: true or false
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Error messages *
|
||||
**********************************************************************************************
|
||||
|
||||
<error_message_content><![CDATA[Content Xml not found]]></error_message_content>
|
||||
<error_message_image><![CDATA[Image not found]]></error_message_image>
|
||||
Value: any text in CDATA tags: <![CDATA[ ... ]]>
|
||||
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* *
|
||||
* The content XML *
|
||||
* *
|
||||
**********************************************************************************************
|
||||
|
||||
The content .xml file contains the properties for each slide.
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Structure of the xml *
|
||||
**********************************************************************************************
|
||||
|
||||
<content>
|
||||
<slides>
|
||||
<slide>[properties go here]</slide>
|
||||
<slide>[properties go here]</slide>
|
||||
...
|
||||
</slides>
|
||||
</content>
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* Properties in the slide tag *
|
||||
**********************************************************************************************
|
||||
|
||||
<title><![CDATA[My first slide]]></title>
|
||||
The title of the slide.
|
||||
Value: any text in CDATA tags: <![CDATA[ ... ]]>
|
||||
|
||||
<description><![CDATA[This is my first slide!]]></description>
|
||||
The description of the slide.
|
||||
Value: any text in CDATA tags: <![CDATA[ ... ]]>
|
||||
|
||||
<image_source>/someUrl/someImg.jpg</image_source>
|
||||
The url to the slide image.
|
||||
Value: an absolute or relative url to a .jpg, .gif or .png file
|
||||
|
||||
<thumb_source>/someUrl/someImg_thumb.jpg</thumb_source>
|
||||
The url to the thumbnail of the slide image.
|
||||
Value: an absolute or relative url to a .jpg, .gif or .png file
|
||||
|
||||
<sound_source>/someUrl/someImg_thumb.jpg</sound_source>
|
||||
The url to the sound file that will be played when the slide is displayed. It will be
|
||||
played once for the duration of the slide (if the duration of the sound file is longer
|
||||
than the set duration of the slide it will be cut off). This property is optional.
|
||||
Value: an absolute or relative url to a .mp3 file
|
||||
|
||||
<duration>8</duration>
|
||||
The duration for this specific slide. This value will overwrite the duration value set
|
||||
in the configuration xml. This property is optional.
|
||||
Value: number in seconds
|
||||
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
The width and height of the slide. This will overwrite the default_slidewidth and
|
||||
default_slideheight set in the configuration xml. The width and height properties are
|
||||
optional.
|
||||
Value: number in px
|
||||
|
||||
|
||||
|
||||
**********************************************************************************************
|
||||
* eof *
|
||||
**********************************************************************************************
|
||||
BIN
www/extras/ukplayer/slideShow.swf
Normal file
BIN
www/extras/ukplayer/slideShow.swf
Normal file
Binary file not shown.
80
www/extras/ukplayer/slideshow.html
Normal file
80
www/extras/ukplayer/slideshow.html
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Strict/EN" "http:/www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http:/www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<title>UKplayer Slideshow Demo</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<script type="text/javascript" src="swfobject.js"></script>
|
||||
<script type="text/javascript">
|
||||
swfobject.registerObject("myFlashContent","9.0.0","expressInstall.swf");
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!--
|
||||
This is the United Knowledge Player for WebGUI.
|
||||
It enables you to display photo's as a movie. The
|
||||
configuration options can be found in the readme
|
||||
file here:
|
||||
/extras/ukplayer/readme.txt
|
||||
|
||||
There are three example files to show you how to
|
||||
use this player:
|
||||
/extras/ukplayer/slideshow.html
|
||||
/extras/ukplayer/config.xml
|
||||
/extras/ukplayer/content.xml
|
||||
|
||||
This player is Free Software under the GPL v2
|
||||
Check out the latest source on:
|
||||
http://git.st.unitedknowledge.org/git/ukplayer.git
|
||||
git clone git://git.st.unitedknowledge.org/ukplayer.git
|
||||
git clone http://git.st.unitedknowledge.org/git/ukplayer.git
|
||||
|
||||
Copyright 2008-2010 United Knowledge http:/www.unitedknowledge.nl/
|
||||
-->
|
||||
|
||||
<div>
|
||||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300" id="myFlashContent">
|
||||
<param name="movie" value="slideShow.swf" />
|
||||
<param name="flashvars" value="config=config.xml" />
|
||||
<!--[if !IE]>-->
|
||||
<object type="application/x-shockwave-flash" data="slideShow.swf" width="400" height="300">
|
||||
<param name="flashvars" value="config=config.xml" />
|
||||
<!--<![endif]-->
|
||||
<a href="http:/www.adobe.com/go/getflashplayer">
|
||||
<img src="http:/www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
|
||||
</a>
|
||||
<!--[if !IE]>-->
|
||||
</object>
|
||||
<!--<![endif]-->
|
||||
</object>
|
||||
</div>
|
||||
|
||||
<p>Code generated with the <a href="http://www.bobbyvandersluis.com/swfobject/generator/index.html">SWFObject 2 HTML and JavaScript generator</a>.</p>
|
||||
|
||||
<textarea rows="25" cols="130">
|
||||
<script type="text/javascript" src="^Extras(ukplayer/swfobject.js);"></script>
|
||||
<script type="text/javascript">
|
||||
swfobject.registerObject("myFlashContent","9.0.0","^Extras(ukplayer/expressInstall.swf);");
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300" id="myFlashContent">
|
||||
<param name="movie" value="^Extras(ukplayer/slideShow.swf);" />
|
||||
<param name="flashvars" value="config=^Extras(ukplayer/config.xml);" />
|
||||
<!--[if !IE]>-->
|
||||
<object type="application/x-shockwave-flash" data="^Extras(ukplayer/slideShow.swf);" width="400" height="300">
|
||||
<param name="flashvars" value="config=^Extras(ukplayer/config.xml);" />
|
||||
<!--<![endif]-->
|
||||
<a href="http:/www.adobe.com/go/getflashplayer">
|
||||
<img src="http:/www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
|
||||
</a>
|
||||
<!--[if !IE]>-->
|
||||
</object>
|
||||
<!--<![endif]-->
|
||||
</object>
|
||||
</div>
|
||||
</textarea>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
5
www/extras/ukplayer/swfobject.js
Normal file
5
www/extras/ukplayer/swfobject.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue