Skip to content

CT Player is a fork of jwplayer that loads VAST and VPAID ads. For documentation and support, please visit the CT Player Support Site:

License

Notifications You must be signed in to change notification settings

nginadofficial/ctplayer

 
 

Repository files navigation

ctplayer

January 2, 2016

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

December 31, 2015

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

December 30, 2015

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.

December 13, 2015

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.

December 12, 2015

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

December 11, 2015

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.

Code Examples

Documentation and Support

Example

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 );
    }

Contributing

Build Instructions

  1. Install Node.js
  2. Install Adobe AIR SDK
  3. Install Java
  4. Download player.swc 11.2
  5. 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.

Software License

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/

About

CT Player is a fork of jwplayer that loads VAST and VPAID ads. For documentation and support, please visit the CT Player Support Site:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ActionScript 50.3%
  • JavaScript 40.6%
  • CSS 5.9%
  • HTML 3.2%