[Yanel-commits] rev 28990 - in
public/yanel/contributions/resources/flow-player: .
src/java/com/wyonapictures/yanel/impl/resources/flv
simon at wyona.com
simon at wyona.com
Sat Nov 17 00:31:13 CET 2007
Author: simon
Date: 2007-11-17 00:31:13 +0100 (Sat, 17 Nov 2007)
New Revision: 28990
Modified:
public/yanel/contributions/resources/flow-player/resource.xml
public/yanel/contributions/resources/flow-player/src/java/com/wyonapictures/yanel/impl/resources/flv/FlowPlayerResource.java
Log:
added property showPlayListButtons.
Modified: public/yanel/contributions/resources/flow-player/resource.xml
===================================================================
--- public/yanel/contributions/resources/flow-player/resource.xml 2007-11-16 23:19:33 UTC (rev 28989)
+++ public/yanel/contributions/resources/flow-player/resource.xml 2007-11-16 23:31:13 UTC (rev 28990)
@@ -10,17 +10,20 @@
</description>
<rtd>
+ <property name="xslt" multiple="true"/>
<property name="width"/> <!-- optional. sample value 250px -->
<property name="height"/> <!-- optional. sample value 250px -->
+ <property name="title"/>
<property name="configFileName"/> <!-- see http://flowplayer.org/documentation/config how to config -->
<!-- all following properties are ignored if configFileName is set -->
<property name="flvPath"/> <!-- ignored if configFileName is used. -->
<property name="path-replace-tokens"/> <!-- optional, example: {1}.flv, see: org.wyona.yanel.core.util.WildcardReplacerHelper, ignored if flvPath is set -->
<property name="path-matcher"/> <!-- optional, example: **.*, see: org.wyona.yanel.core.util.WildcardReplacerHelper, ignored if flvPath is set -->
- <property name="title"/>
+ <!-- for folowing properties see http://flowplayer.org/documentation/config -->
<property name="splashImg"/> <!-- if not set standard splash image will be displayed. set to "none" if no splash image is desired. ignored if configFileName is used. -->
<property name="showFullScreenButton"/> <!-- optional, [true/false], default false -->
<property name="showMenu"/> <!-- optional, [true/false], default false -->
+ <property name="showPlayListButtons"/> <!-- optional, [true/false], default false -->
<property name="initialScale"/> <!-- optional, [fit/half/orig/scale], default fit -->
</rtd>
</resource>
Modified: public/yanel/contributions/resources/flow-player/src/java/com/wyonapictures/yanel/impl/resources/flv/FlowPlayerResource.java
===================================================================
--- public/yanel/contributions/resources/flow-player/src/java/com/wyonapictures/yanel/impl/resources/flv/FlowPlayerResource.java 2007-11-16 23:19:33 UTC (rev 28989)
+++ public/yanel/contributions/resources/flow-player/src/java/com/wyonapictures/yanel/impl/resources/flv/FlowPlayerResource.java 2007-11-16 23:31:13 UTC (rev 28990)
@@ -107,7 +107,7 @@
//IOUtils.write("fo.addParam(\"allowScriptAccess\", \"always\");", baos);
if (getResourceConfigProperty("configFileName") != null) {
- IOUtils.write("fo.addVariable(\"config\", \"{ configFileName: '" + getResourceConfigProperty("configFileName") +"' }\");", baos);
+ IOUtils.write("fo.addVariable(\"config\", \"{ configFileName: '" + PathUtil.backToRealm(getPath()) + getResourceConfigProperty("configFileName") +"' }\");", baos);
} else {
String splashImg = "";
if (getResourceConfigProperty("splashImg") == null) {
@@ -125,6 +125,10 @@
flvPath = getResourceConfigProperty("flvPath");
}
+ String showPlayListButtons = "showPlayListButtons: false, ";
+ if (getResourceConfigProperty("showPlayListButtons") != null && getResourceConfigProperty("showPlayListButtons").equals("true")) {
+ showPlayListButtons = "showPlayListButtons: true, ";
+ }
String showFullScreenButton = ", showFullScreenButton: false ";
if (getResourceConfigProperty("showFullScreenButton") != null && getResourceConfigProperty("showFullScreenButton").equals("true")) {
showFullScreenButton = ", showFullScreenButton: true ";
@@ -140,7 +144,7 @@
initialScale = ", initialScale: '" + getResourceConfigProperty("initialScale") + "' ";
}
- IOUtils.write("fo.addVariable(\"config\", \"{ showPlayListButtons: true, playList: [ " + splashImg + " { url: '" + flvPath + "' } ]" + showMenu + showFullScreenButton + initialScale + " }\");", baos);
+ IOUtils.write("fo.addVariable(\"config\", \"{ " + showPlayListButtons + " playList: [ " + splashImg + " { url: '" + flvPath + "' } ]" + showMenu + showFullScreenButton + initialScale + " }\");", baos);
}
IOUtils.write("fo.write(\"flowplayerholder\");", baos);
//IOUtils.write("// ]]>", baos);
More information about the Yanel-commits
mailing list