Skip to content

Commit

Permalink
Merge branch 'stable' of https://github.com/videojs/video.js into stable
Browse files Browse the repository at this point in the history
* 'stable' of https://github.com/videojs/video.js: (22 commits)
  Added line to changelog for 4.10.1
  Release 4.10.1
  Removed alert...
  Release 4.10.0
  @heff turned on the custom html controls for touch devices. closes videojs#1617
  updated options to include sans-children, and included self-hosted font blurb
  added CORS information to tracks guide. Fixes videojs#837
  doc updates + readme quick start
  updated options guide to include components
  @heff Added the ability to set options for child components directly in the parent options. closes videojs#1599
  @DevGavin added a Simplified Chinese translation. closes videojs#1593
  @mmcc fixed an issue with the VolumeButton assuming it was vertical by default. closes videojs#1592
  @heff enhanced the event listener API to allow for auto-cleanup of listeners on other componenets and elements. closes videojs#1588
  @mmcc fixed an issue where errors on source tags could get missed. closes videojs#1575
  Added doc for remaining time and removed onWaitEnd doc
  maybe actually check for keyLocation
  Update languages.md
  @heff updated the poster to use CSS styles to display; fixed the poster not showing if not originally set. closes videojs#1568
  Release 4.9.1
  Bumped to videojs-swf v4.5.1 to fix a data sanitization issue. closes videojs#1587
  ...
  • Loading branch information
jgubman committed Oct 29, 2014
2 parents 4406334 + f420c5b commit ecc3603
Show file tree
Hide file tree
Showing 112 changed files with 16,096 additions and 2,464 deletions.
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"process",

"PlayerTest",
"TestHelpers",
"asyncTest",
"deepEqual",
"equal",
Expand Down
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@ CHANGELOG
=========

## HEAD (Unreleased)
_(none)_

--------------------

## 4.10.1 (2014-10-29)
@heff removed his own stupid error ([view])(https://github.com/videojs/video.js/commit/a12dd770572a7f16e436e2332eba7ffbb1f1b9b9)

## 4.10.0 (2014-10-28)
* @aptx4869 fixed an issue where the native JSON parser wasn't used ([view](https://github.com/videojs/video.js/pull/1565))
* @andekande improved the German translation ([view](https://github.com/videojs/video.js/pull/1555))
* @OlehTsvirko added a Ukrainian translation ([view](https://github.com/videojs/video.js/pull/1562))
* @OlehTsvirko added a Russian translation ([view](https://github.com/videojs/video.js/pull/1563))
* @thijstriemstra added a Dutch translation ([view](https://github.com/videojs/video.js/pull/1566))

--------------------
* @heff updated the poster to use CSS styles to display; fixed the poster not showing if not originally set ([view](https://github.com/videojs/video.js/pull/1568))
* @mmcc fixed an issue where errors on source tags could get missed ([view](https://github.com/videojs/video.js/pull/1575))
* @heff enhanced the event listener API to allow for auto-cleanup of listeners on other componenets and elements ([view](https://github.com/videojs/video.js/pull/1588))
* @mmcc fixed an issue with the VolumeButton assuming it was vertical by default ([view](https://github.com/videojs/video.js/pull/1592))
* @DevGavin added a Simplified Chinese translation ([view](https://github.com/videojs/video.js/pull/1593))
* @heff Added the ability to set options for child components directly in the parent options ([view](https://github.com/videojs/video.js/pull/1599))
* @heff turned on the custom html controls for touch devices ([view](https://github.com/videojs/video.js/pull/1617))

## 4.9.1 (2014-10-15)
* Bumped to videojs-swf v4.5.1 to fix a data sanitization issue ([view](https://github.com/videojs/video.js/pull/1587))

## 4.9.0 (2014-09-30)
* @deedos added a Brazilian Portuguese translation ([view](https://github.com/videojs/video.js/pull/1520))
Expand Down
47 changes: 45 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,51 @@
![Video.js logo](https://i.cloudup.com/C3nAUZ-l4c.png)

# [Video.js - HTML5 Video Player](http://videojs.com) [![Build Status](https://travis-ci.org/videojs/video.js.png?branch=master)](https://travis-ci.org/videojs/video.js)

> Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 and Flash video, as well as YouTube and Vimeo (through [plugins](https://github.com/videojs/video.js/wiki/Plugins)). It supports video playback on desktops and mobile devices. This project was started mid 2010, and the player is now used on over 50,000 websites.
> Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 and Flash video, as well as YouTube and Vimeo (through [plugins](https://github.com/videojs/video.js/wiki/Plugins)). It supports video playback on desktops and mobile devices. This project was started mid 2010, and the player is now used on over ~~50,000~~ 100,000 websites.
## Quick start
Thanks to the awesome folks over at [Fastly](http://www.fastly.com/), there's a free, CDN hosted version of Video.js that anyone can use. Simply add these includes to your document's
`<head>`:

```html
<link href="http://vjs.zencdn.net/4.9/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.9/video.js"></script>
```

Then, whenever you want to use Video.js you can simply use the `<video>` element as your normally would, but with an additional `data-setup` attribute containing any Video.js options. These options
can include any Video.js option plus potential [plugin](https://github.com/videojs/video.js/wiki/Plugins) options, just make sure they're valid JSON!

```html
<video id="really-cool-video" class="video-js vjs-default-skin" controls
preload="auto" width="640" height="264" poster="really-cool-video-poster.jpg"
data-setup='{}'>
<source src="really-cool-video.mp4" type='video/mp4'>
<source src="really-cool-video.webm" type='video/webm'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser
that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
```

If you don't want to use auto-setup, you can leave off the `data-setup` attribute and initialize a video element manually.

```javascript
var player = videojs('really-cool-video', { /* Options */ }, function() {
console.log('Good to go!');

this.play(); // if you don't trust autoplay for some reason

// How about an event listener?
this.on('ended', function() {
console.log('awww...over so soon?');
});
});
```

Visit [videojs.com](http://videojs.com) for an overview, download options, and instructions on how to use the player on your site.
If you're ready to dive in, the [documentation](/blob/master/docs/index.md) is the first place to go for more information. Generally the
[player API docs](/blob/master/docs/api/vjs.Player.md) are the most pertinent.

## Contributing
Video.js is a free and open source library, and we appreciate any help you're willing to give. Check out the [contributing guide](CONTRIBUTING.md).
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "4.9.0",
"version": "4.10.1",
"main": [
"dist/video-js/video.js",
"dist/video-js/video-js.css"
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "4.9.0",
"version": "4.10.1",
"keywords": [
"videojs",
"html5",
Expand Down
3 changes: 1 addition & 2 deletions contrib.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@
"patch": {
"desc": "Create an urgent fix for the latest stable version",
"baseBranch": "stable",
"new": {
"alias": "start",
"start": {
"desc": "Start a new patch",
"finished": "Make your changes and then run `contrib patch submit`",
"steps": [
Expand Down
41 changes: 41 additions & 0 deletions dist/video-js/demo.captions.vtt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
WEBVTT
00:00.700 --> 00:04.110
Captions describe all relevant audio for the hearing impaired.
[ Heroic music playing for a seagull ]

00:04.500 --> 00:05.000
[ Splash!!! ]

00:05.100 --> 00:06.000
[ Sploosh!!! ]

00:08.000 --> 00:09.225
[ Splash...splash...splash splash splash ]

00:10.525 --> 00:11.255
[ Splash, Sploosh again ]

00:13.500 --> 00:14.984
Dolphin: eeeEEEEEeeee!

00:14.984 --> 00:16.984
Dolphin: Squawk! eeeEEE?

00:25.000 --> 00:28.284
[ A whole ton of splashes ]

00:29.500 --> 00:31.000
Mine. Mine. Mine.

00:34.300 --> 00:36.000
Shark: Chomp

00:36.800 --> 00:37.900
Shark: CHOMP!!!

00:37.861 --> 00:41.193
EEEEEEOOOOOOOOOOWHALENOISE

00:42.593 --> 00:45.611
[ BIG SPLASH ]
32 changes: 32 additions & 0 deletions dist/video-js/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Video.js | HTML5 Video Player</title>

<!-- Chang URLs to wherever Video.js files will be hosted -->
<link href="video-js.css" rel="stylesheet" type="text/css">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="video.js"></script>

<!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
<script>
videojs.options.flash.swf = "video-js.swf";
</script>


</head>
<body>

<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup="{}">
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
<track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
<track kind="subtitles" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>

</body>
</html>
Binary file added dist/video-js/font/vjs.eot
Binary file not shown.
28 changes: 28 additions & 0 deletions dist/video-js/font/vjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/video-js/font/vjs.ttf
Binary file not shown.
Binary file added dist/video-js/font/vjs.woff
Binary file not shown.
26 changes: 26 additions & 0 deletions dist/video-js/lang/de.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
videojs.addLanguage("de",{
"Play": "Wiedergabe",
"Pause": "Pause",
"Current Time": "Aktueller Zeitpunkt",
"Duration Time": "Dauer",
"Remaining Time": "Verbleibende Zeit",
"Stream Type": "Streamtyp",
"LIVE": "LIVE",
"Loaded": "Geladen",
"Progress": "Status",
"Fullscreen": "Vollbild",
"Non-Fullscreen": "Kein Vollbild",
"Mute": "Ton aus",
"Unmuted": "Ton ein",
"Playback Rate": "Wiedergabegeschwindigkeit",
"Subtitles": "Untertitel",
"subtitles off": "Untertitel aus",
"Captions": "Untertitel",
"captions off": "Untertitel aus",
"Chapters": "Kapitel",
"You aborted the video playback": "Sie haben die Videowiedergabe abgebrochen.",
"A network error caused the video download to fail part-way.": "Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.",
"The video could not be loaded, either because the server or network failed or because the format is not supported.": "Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.",
"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.",
"No compatible source was found for this video.": "Für dieses Video wurde keine kompatible Quelle gefunden."
});
Loading

0 comments on commit ecc3603

Please sign in to comment.