Commit 90dc9e91 authored by Anssi Piirainen's avatar Anssi Piirainen

Move flowplayer.js minimisation to the main build file.

parent 319701d8
<!-- projet name is used as a base name for distribution files -->
<project name="flowplayer" default="min">
<property name="DEVKIT_HOME" value="../../../../lib/devkit"/>
<import file="../../../../../flash-build/js.xml"/>
<property name="version" value="3.2.12"/>
<!-- concat -->
<target name="concat">
<concat destfile="flowplayer.js">
<fileset dir="${basedir}" includes="flowplayer-src.js"/>
<fileset dir=".."
includes="flashembed.js"/>
</concat>
</target>
<target name="min" depends="concat">
<ant antfile="../../../../../flash-build/js.xml" target="min"/>
</target>
<target name="lint">
<java jar="${rhino}" fork="true">
<arg value="${DEVKIT_HOME}/lib/jslint.js" />
<arg value="flowplayer-src.js" />
</java>
</target>
</project>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<script type="text/javascript" src="flowplayer-3.0.5.min.js"></script>-->
<script src="../src/javascript/flowplayer.js/flowplayer-3.2.11.min.js"></script>
<!-- page title -->
<title>Minimal Flowplayer setup</title>
</head><body>
<div id="page">
<a
href="flowplayer-700.flv"
style="display:block;width:440px;height:247px"
id="player">
</a>
<script>
flowplayer("player", "../../../flash-build/build/flowplayer-3.2.17-dev.swf",
{
log: { level: 'debug', filter: 'org.flowplayer.audio.*' },
key: '#$b6223bfbd646c621758',
onStart: function(clip) {
console.log("onStart: " + clip.url);
},
onFinish: function(clip) {
console.log("onFinish: " + clip.url);
},
onPause: function(clip) {
console.log("onPause: " + clip.url);
},
onResume: function(clip) {
console.log("onResume " + clip.url);
},
onSeek: function() {
console.log("onSeek");
},
clip: {
// baseUrl for both parent and instream clips
baseUrl: 'http://flowmac2:8000/',
// duration for the parent clip
duration: 10,
// instream playlist
playlist: [
{url: 'KimAronson-TwentySeconds59483.flv', duration: 10, position: 0 }
// in the middle of the parent clip (ie. "mid-roll") starting at
// 5 seconds
/* {
url: 'honda_accord.flv', duration: 5, position: 2,
controls: {all: false, volume: true, fullscreen: true}
}*/
]
},
plugins: {
audioInstream: {
url: 'flowplayer.audio-3.2.11-dev.swf'
}
}
});
</script>
</div>
</body></html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment