Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed May 21, 2015
2 parents 6f455f4 + caf725a commit aa998c9
Show file tree
Hide file tree
Showing 26 changed files with 55 additions and 33 deletions.
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": "5.0.0-16",
"version": "5.0.0-18",
"keywords": [
"videojs",
"html5",
Expand Down
2 changes: 1 addition & 1 deletion package.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": "5.0.0-16",
"version": "5.0.0-18",
"copyright": "Copyright Brightcove, Inc. <https://www.brightcove.com/>",
"license": "Apache-2.0",
"keywords": [
Expand Down
5 changes: 3 additions & 2 deletions src/js/big-play-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from './button';
import Button from './button.js';
import Component from './component.js';

/* Big Play Button
================================================================================ */
Expand Down Expand Up @@ -26,5 +27,5 @@ class BigPlayButton extends Button {

}

Button.registerComponent('BigPlayButton', BigPlayButton);
Component.registerComponent('BigPlayButton', BigPlayButton);
export default BigPlayButton;
5 changes: 3 additions & 2 deletions src/js/control-bar/fullscreen-toggle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from '../button';
import Button from '../button.js';
import Component from '../component.js';

/**
* Toggle fullscreen video
Expand Down Expand Up @@ -27,5 +28,5 @@ class FullscreenToggle extends Button {

FullscreenToggle.prototype.buttonText = 'Fullscreen';

Button.registerComponent('FullscreenToggle', FullscreenToggle);
Component.registerComponent('FullscreenToggle', FullscreenToggle);
export default FullscreenToggle;
5 changes: 3 additions & 2 deletions src/js/control-bar/play-toggle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from '../button';
import Button from '../button.js';
import Component from '../component.js';

/**
* Button to toggle between play and pause
Expand Down Expand Up @@ -47,5 +48,5 @@ class PlayToggle extends Button {

PlayToggle.prototype.buttonText = 'Play';

Button.registerComponent('PlayToggle', PlayToggle);
Component.registerComponent('PlayToggle', PlayToggle);
export default PlayToggle;
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import MenuButton from '../../menu/menu-button.js';
import Menu from '../../menu/menu.js';
import PlaybackRateMenuItem from './playback-rate-menu-item.js';
import Component from '../../component.js';
import * as Dom from '../../utils/dom.js';

/**
Expand Down Expand Up @@ -104,5 +105,5 @@ class PlaybackRateMenuButton extends MenuButton {
PlaybackRateMenuButton.prototype.buttonText = 'Playback Rate';
PlaybackRateMenuButton.prototype.className = 'vjs-playback-rate';

MenuButton.registerComponent('PlaybackRateMenuButton', PlaybackRateMenuButton);
Component.registerComponent('PlaybackRateMenuButton', PlaybackRateMenuButton);
export default PlaybackRateMenuButton;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MenuItem from '../../menu/menu-item.js';
import Component from '../../component.js';

/**
* The specific menu item type for selecting a playback rate
Expand Down Expand Up @@ -35,5 +36,5 @@ class PlaybackRateMenuItem extends MenuItem {

PlaybackRateMenuItem.prototype.contentElType = 'button';

MenuItem.registerComponent('PlaybackRateMenuItem', PlaybackRateMenuItem);
Component.registerComponent('PlaybackRateMenuItem', PlaybackRateMenuItem);
export default PlaybackRateMenuItem;
3 changes: 2 additions & 1 deletion src/js/control-bar/progress-control/seek-bar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Slider from '../../slider/slider.js';
import Component from '../../component.js';
import LoadProgressBar from './load-progress-bar.js';
import PlayProgressBar from './play-progress-bar.js';
import SeekHandle from './seek-handle.js';
Expand Down Expand Up @@ -90,5 +91,5 @@ SeekBar.prototype.options_ = {

SeekBar.prototype.playerEvent = 'timeupdate';

Slider.registerComponent('SeekBar', SeekBar);
Component.registerComponent('SeekBar', SeekBar);
export default SeekBar;
3 changes: 2 additions & 1 deletion src/js/control-bar/progress-control/seek-handle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import SliderHandle from '../../slider/slider-handle.js';
import Component from '../../component.js';
import formatTime from '../../utils/format-time.js';

/**
Expand Down Expand Up @@ -39,5 +40,5 @@ class SeekHandle extends SliderHandle {
*/
SeekHandle.prototype.defaultValue = '00:00';

SliderHandle.registerComponent('SeekHandle', SeekHandle);
Component.registerComponent('SeekHandle', SeekHandle);
export default SeekHandle;
4 changes: 2 additions & 2 deletions src/js/control-bar/spacer-controls/custom-control-spacer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Spacer from './spacer.js';
import Component from '../../component.js';

/**
* Spacer specifically meant to be used as an insertion point for new plugins, etc.
Expand All @@ -18,6 +19,5 @@ class CustomControlSpacer extends Spacer {
}
}

Spacer.registerComponent('CustomControlSpacer', CustomControlSpacer);

Component.registerComponent('CustomControlSpacer', CustomControlSpacer);
export default CustomControlSpacer;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import TextTrackMenuItem from './text-track-menu-item.js';
import Component from '../../component.js';

class CaptionSettingsMenuItem extends TextTrackMenuItem {

Expand All @@ -21,5 +22,5 @@ class CaptionSettingsMenuItem extends TextTrackMenuItem {

}

TextTrackMenuItem.registerComponent('CaptionSettingsMenuItem', CaptionSettingsMenuItem);
Component.registerComponent('CaptionSettingsMenuItem', CaptionSettingsMenuItem);
export default CaptionSettingsMenuItem;
3 changes: 2 additions & 1 deletion src/js/control-bar/text-track-controls/captions-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import TextTrackButton from './text-track-button.js';
import Component from '../../component.js';
import CaptionSettingsMenuItem from './caption-settings-menu-item.js';

/**
Expand Down Expand Up @@ -45,5 +46,5 @@ CaptionsButton.prototype.kind_ = 'captions';
CaptionsButton.prototype.buttonText = 'Captions';
CaptionsButton.prototype.className = 'vjs-captions-button';

TextTrackButton.registerComponent('CaptionsButton', CaptionsButton);
Component.registerComponent('CaptionsButton', CaptionsButton);
export default CaptionsButton;
3 changes: 2 additions & 1 deletion src/js/control-bar/text-track-controls/chapters-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import TextTrackButton from './text-track-button.js';
import Component from '../../component.js';
import TextTrackMenuItem from './text-track-menu-item.js';
import ChaptersTrackMenuItem from './chapters-track-menu-item.js';
import Menu from '../../menu/menu.js';
Expand Down Expand Up @@ -107,5 +108,5 @@ ChaptersButton.prototype.kind_ = 'chapters';
ChaptersButton.prototype.buttonText = 'Chapters';
ChaptersButton.prototype.className = 'vjs-chapters-button';

TextTrackButton.registerComponent('ChaptersButton', ChaptersButton);
Component.registerComponent('ChaptersButton', ChaptersButton);
export default ChaptersButton;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MenuItem from '../../menu/menu-item.js';
import Component from '../../component.js';
import * as Fn from '../../utils/fn.js';

/**
Expand Down Expand Up @@ -37,5 +38,5 @@ class ChaptersTrackMenuItem extends MenuItem {

}

MenuItem.registerComponent('ChaptersTrackMenuItem', ChaptersTrackMenuItem);
Component.registerComponent('ChaptersTrackMenuItem', ChaptersTrackMenuItem);
export default ChaptersTrackMenuItem;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import TextTrackMenuItem from './text-track-menu-item.js';
import Component from '../../component.js';

/**
* A special menu item for turning of a specific type of text track
Expand Down Expand Up @@ -39,5 +40,5 @@ class OffTextTrackMenuItem extends TextTrackMenuItem {

}

TextTrackMenuItem.registerComponent('OffTextTrackMenuItem', OffTextTrackMenuItem);
export default OffTextTrackMenuItem;
Component.registerComponent('OffTextTrackMenuItem', OffTextTrackMenuItem);
export default OffTextTrackMenuItem;
5 changes: 3 additions & 2 deletions src/js/control-bar/text-track-controls/subtitles-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import TextTrackButton from './text-track-button.js';
import Component from '../../component.js';

/**
* The button component for toggling and selecting subtitles
Expand All @@ -18,5 +19,5 @@ SubtitlesButton.prototype.kind_ = 'subtitles';
SubtitlesButton.prototype.buttonText = 'Subtitles';
SubtitlesButton.prototype.className = 'vjs-subtitles-button';

TextTrackButton.registerComponent('SubtitlesButton', SubtitlesButton);
export default SubtitlesButton;
Component.registerComponent('SubtitlesButton', SubtitlesButton);
export default SubtitlesButton;
3 changes: 2 additions & 1 deletion src/js/control-bar/text-track-controls/text-track-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MenuButton from '../../menu/menu-button.js';
import Component from '../../component.js';
import * as Fn from '../../utils/fn.js';
import TextTrackMenuItem from './text-track-menu-item.js';
import OffTextTrackMenuItem from './off-text-track-menu-item.js';
Expand Down Expand Up @@ -60,5 +61,5 @@ class TextTrackButton extends MenuButton {

}

MenuButton.registerComponent('TextTrackButton', TextTrackButton);
Component.registerComponent('TextTrackButton', TextTrackButton);
export default TextTrackButton;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MenuItem from '../../menu/menu-item.js';
import Component from '../../component.js';
import * as Fn from '../../utils/fn.js';
import window from 'global/window';
import document from 'global/document';
Expand Down Expand Up @@ -86,5 +87,5 @@ class TextTrackMenuItem extends MenuItem {

}

MenuItem.registerComponent('TextTrackMenuItem', TextTrackMenuItem);
Component.registerComponent('TextTrackMenuItem', TextTrackMenuItem);
export default TextTrackMenuItem;
3 changes: 2 additions & 1 deletion src/js/control-bar/volume-control/volume-bar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Slider from '../../slider/slider.js';
import Component from '../../component.js';
import * as Fn from '../../utils/fn.js';
import roundFloat from '../../utils/round-float.js';

Expand Down Expand Up @@ -71,5 +72,5 @@ VolumeBar.prototype.options_ = {

VolumeBar.prototype.playerEvent = 'volumechange';

Slider.registerComponent('VolumeBar', VolumeBar);
Component.registerComponent('VolumeBar', VolumeBar);
export default VolumeBar;
3 changes: 2 additions & 1 deletion src/js/control-bar/volume-control/volume-handle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import SliderHandle from '../../slider/slider-handle.js';
import Component from '../../component.js';

/**
* The volume handle can be dragged to adjust the volume level
Expand All @@ -20,5 +21,5 @@ class VolumeHandle extends SliderHandle {

VolumeHandle.prototype.defaultValue = '00:00';

SliderHandle.registerComponent('VolumeHandle', VolumeHandle);
Component.registerComponent('VolumeHandle', VolumeHandle);
export default VolumeHandle;
3 changes: 2 additions & 1 deletion src/js/control-bar/volume-menu-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from '../button.js';
import Component from '../component.js';
import Menu from '../menu/menu.js';
import MenuButton from '../menu/menu-button.js';
import MuteToggle from './mute-toggle.js';
Expand Down Expand Up @@ -67,5 +68,5 @@ class VolumeMenuButton extends MenuButton {

VolumeMenuButton.prototype.volumeUpdate = MuteToggle.prototype.update;

Button.registerComponent('VolumeMenuButton', VolumeMenuButton);
Component.registerComponent('VolumeMenuButton', VolumeMenuButton);
export default VolumeMenuButton;
3 changes: 2 additions & 1 deletion src/js/menu/menu-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from '../button.js';
import Component from '../component.js';
import Menu from './menu.js';
import * as Dom from '../utils/dom.js';
import * as Fn from '../utils/fn.js';
Expand Down Expand Up @@ -139,5 +140,5 @@ class MenuButton extends Button {
}
}

Button.registerComponent('MenuButton', MenuButton);
Component.registerComponent('MenuButton', MenuButton);
export default MenuButton;
3 changes: 2 additions & 1 deletion src/js/menu/menu-item.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from '../button.js';
import Component from '../component.js';
import assign from 'object.assign';

/**
Expand Down Expand Up @@ -47,5 +48,5 @@ class MenuItem extends Button {

}

Button.registerComponent('MenuItem', MenuItem);
Component.registerComponent('MenuItem', MenuItem);
export default MenuItem;
5 changes: 3 additions & 2 deletions src/js/poster-image.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from './button';
import Button from './button.js';
import Component from './component.js';
import * as Fn from './utils/fn.js';
import * as Dom from './utils/dom.js';
import * as browser from './utils/browser.js';
Expand Down Expand Up @@ -103,5 +104,5 @@ class PosterImage extends Button {

}

Button.registerComponent('PosterImage', PosterImage);
Component.registerComponent('PosterImage', PosterImage);
export default PosterImage;
2 changes: 1 addition & 1 deletion src/js/tech/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,5 +394,5 @@ Flash.getEmbedCode = function(swf, flashVars, params, attributes){
// Run Flash through the RTMP decorator
FlashRtmpDecorator(Flash);

Tech.registerComponent('Flash', Flash);
Component.registerComponent('Flash', Flash);
export default Flash;
3 changes: 2 additions & 1 deletion test/unit/tech/tech-faker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// can run without HTML5 or Flash, of which PhantomJS supports neither.

import Tech from '../../../src/js/tech/tech.js';
import Component from '../../../src/js/component.js';

/**
* @constructor
Expand Down Expand Up @@ -51,5 +52,5 @@ class TechFaker extends Tech {
static canPlaySource(srcObj) { return srcObj.type !== 'video/unsupported-format'; }
}

Tech.registerComponent('TechFaker', TechFaker);
Component.registerComponent('TechFaker', TechFaker);
export default TechFaker;

0 comments on commit aa998c9

Please sign in to comment.