Giter VIP home page Giter VIP logo

jwplayer-2's Introduction

JW Player Logo

JW Player is a the world's most popular embeddable media player.

  • Cross browser: Play your video and audio files easily on all major browsers and mobile devices. Full details here.
  • Media formats: Play MP4, WebM, FLV, HLS, YouTube videos, and more.
  • Open Source: JW Player is free for non-commercial use. For commercial uses, users must purchase a license.

For documentation and support, please visit the JW Player Support Site.

Examples

We have several articles and examples on the JW Player Support Site.

The example below will find the element with an id of myVideoId and render a video player into it. We will then create an event handler to watch for when someone changes the volume.

	jwplayer('myVideoId').setup({
		file: '/uploads/example.mp4',
	});

	jwplayer('myVideoId').onVolume(function(event) {
		console.log('The volume has changed', event);
	});

Note that we could also use functions getVolume, setVolume and others which can be found here.

Contributing

Style Guide

For our javascript code, we follow the Douglas Crockford Style guide

Before submitting a change be sure to verify it follows our guide by using

grunt jshint

Build Instructions

To build the JW Player, you will need the following software:

To compile with Flex and Ant, you'll first need to modify the build.properties file found in the build folder:

  1. Set flexsdk to the install location of the Flex SDK (e.g. /usr/local/bin/flex/)
  2. Set execextension to .exe if you're using Windows; otherwise leave it blank.

You can now compile the player using Ant:

ant -buildfile build\build.xml

If the build is successful, the new player assets (jwplayer.js, jwplayer.html5.js, jwplayer.flash.swf) will appear 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/

jwplayer-2's People

Contributors

alkupe avatar donato avatar jeroenwijering avatar pablos1 avatar robwalch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.