Due to the Flex "Initializing" and loading slider which is extremely annoying, we are getting rid of Flex 3 SDK and using FlashDevelop, the free Flash IDE to compile the flash version of CTPlayer instead. The flex_3_sdk project will be deleted from Github and the build files will be changed to FlashDevelop's. http://www.flashdevelop.org/downloads/releases/FlashDevelop-5.0.2.exe
Update the flex_3_sdk from https://github.com/nginadfoundation/flexsdk and recompile with ant build. You will see that the code now compiles against Flash Player 11 and produces ctplayer\build\ctplayer-0.1.0.swc
Update the build instructions to specify the relative path of the Flex SDK. Also specify that only the x86 version of the JDK will work with the Flex SDK.
The build.xml file requires Apache ant and the Oracle Java JDK.
You can download it here: https://ant.apache.org/bindownload.cgi
After you un-archive it to a directory make sure both ant and the jdk/bin directory are on your system path and JAVA_HOME is defined as the path to the JDK root directory in your environment then:
-
cd ctplayer/build-script
-
ant
that will begin the build process for ctplayer.
Make sure you git cloned the flex_sdk_3 from the nginadfoundation Github to the ctplayer/flex_sdk_3/flexsdk directory as well as it is needed to compile the project.
flex_sdk_3 was imported into nginadfoundation's Github from Google code.
Instructions: Import the flex_sdk_3 from the nginadfoundation Github into ctplayer/flex_sdk_3/ You will need it to compile ctplayer.
-
cd ctplayer/flex_sdk_3/
-
-
The directory ctplayer/flex_sdk_3/flexsdk containing the Flex 3 SDK should exist after you check it out.
The jwplayer fork has been renamed to ctplayer for those of a different faith. Also, the OVA files for VAST XML loading have been committed to ctplayer/src/flash/org The code to wire OVA up to the FOSS version of this player will come next. Also we will import the JS VPAID code implementation from: https://github.com/ryanthompson591/vpaidExamples
OLD JWPLAYER MESSAGE ARCHIVE BELOW
Plays everywhere, every time.
JW Player is -the- open source solution for making video playback seamless across browsers and file types. It empowers the developer to interact with video programmatically to create unique and awesome user experiences.
The example below will find the element with an id of my_video and render a video player into it.
// Create a jwplayer instance
jwplayer('my_video').setup({
file: '/uploads/example.mp4',
});
// Add a custom callback for when user pauses playback
jwplayer('my_video').on('pause', function(event) {
alert('Why did my user pause their video instead of watching it?');
});
Other callbacks that we provide include
- play / complete
- seek / pause
- volume / mute
- and more
You also have the power to programatically set any configuration within the player.
function bumpIt() {
var vol = player.getVolume();
player.setVolume(vol + 10 );
}
- Install Node.js
- Install Adobe AIR SDK
- Install Java
- Download player.swc 11.2
- Rename and move the .swc file to
{AIRSDK_Compiler}/frameworks/libs/player/11.2/playerglobal.swc
# First time set up
npm install -g grunt
npm install
# Build using
grunt
After build, the assets will be available in the bin-release
folder.
The use of this library is governed by a Creative Commons license. You can use, modify, copy, and distribute this edition as long as it’s for non-commercial use, you provide attribution, and share under a similar license. http://www.jwplayer.com/license/