I recently had to make changes to the Captions plugin to add additional functionality. I downloaded the source code, made my changes to the Actionscript files, and then.... ummm... what do I do?
I tried following the documentation about authoring Flash plugins http://www.flowplayer.org/documentation/developer/writing-flash-plugins.html), but I found the instructions to be incomplete, at least for me.
After quite a bit of trial and error, I came up with the following things I needed to do within my Windows environment to successfully compile my new Captions plugin. Hopefully this helps someone else banging their head:
To compile, run the following command at the Command Prompt:
Z:\apache-ant-1.7.1\bin>ant -file z:\flowplayer\Core\flowplayer.devkit\flowplayer.captions\build.xml
Requirements:
I tried following the documentation about authoring Flash plugins http://www.flowplayer.org/documentation/developer/writing-flash-plugins.html), but I found the instructions to be incomplete, at least for me.
After quite a bit of trial and error, I came up with the following things I needed to do within my Windows environment to successfully compile my new Captions plugin. Hopefully this helps someone else banging their head:
To compile, run the following command at the Command Prompt:
Z:\apache-ant-1.7.1\bin>ant -file z:\flowplayer\Core\flowplayer.devkit\flowplayer.captions\build.xml
Requirements:
- Flowplayer Development Kit (devkit) http://www.flowplayer.org/releases/flowplayer.devkit/flowplayer.devkit-3.1.0.zip)
- ANT 1.7.1 http://ant.apache.org/)
- Adobe Flex 3 SDK http://www.adobe.com/products/flex/flexdownloads/index.html)
- Java SE Development Kit (Java JDK 1.6.0) http://java.sun.com/javase/downloads/index.jsp)
- The following Windows Environment Variables:
- ANT_HOME : Z:\apache-ant-1.7.1
- CLASSPATH : (make sure this value is empty!)
- JAVA_HOME : C:\Program Files\Java\jdk1.6.0_13
- PATH : ;%PATH%;%ANT_HOME%\bin (these values are what I appended to the end)
- Create a file structure like the following: flowplayer\Core\flowplayer.devkit\flowplayer.captions
- Modify the plugin-build.properties file in the flowplayer.devkit folder to do the following:
- Point to the Flex 3 SDK path (flex3dir)
- Modify the mxmlc_bin, compc_bin, and asdoc_bin parameters to add a ".exe" extension to the end of the file names (for Windows)