Skip to content

JW Player is a the world's most popular embeddable media player. For documentation and support, please visit the JW Player Support Site:

License

Notifications You must be signed in to change notification settings

monibons/jwplayer

 
 

Repository files navigation

JW Player Logo

Join the chat at https://gitter.im/jwplayer/jwplayer

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.get('volume');
        player.set('volume', vol + 10 );
    }

Contributing

Build Instructions

  1. Install Node.js
  2. Install Adobe AIR SDK
  3. Download player.swc 11.1
  4. Rename and move the .swc file to {AIRSDK_Compiler}/frameworks/libs/player/11.1/playerglobal.swc
    # First time set up
    npm install
    
    # Build using
    grunt

After build, the assets will be available in the bin-release folder.

Software License

The use of the JW Player Open Source edition 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

JW Player is a the world's most popular embeddable media player. For documentation and support, please visit the JW Player Support Site:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 48.1%
  • ActionScript 46.5%
  • CSS 3.0%
  • HTML 2.4%