Skip to content

Commit

Permalink
@misteroneill re-exposed videojs.TextTrack. closes #2625
Browse files Browse the repository at this point in the history
  • Loading branch information
misteroneill authored and heff committed Sep 22, 2015
1 parent 8fbe0a9 commit 3f8be86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ CHANGELOG
* @imbcmdth extended createTimeRange to support multiple timeranges ([view](https://github.com/videojs/video.js/pull/2604))
* @misteroneill rename "extends" to "extend" for ie8 ([view](https://github.com/videojs/video.js/pull/2624))
* @forbesjo removed the PhantomJS dependency ([view](https://github.com/videojs/video.js/pull/2622))
* @misteroneill re-exposed videojs.TextTrack ([view](https://github.com/videojs/video.js/pull/2625))

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

Expand Down
8 changes: 8 additions & 0 deletions src/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Player from './player';
import plugin from './plugins.js';
import mergeOptions from '../../src/js/utils/merge-options.js';
import * as Fn from './utils/fn.js';
import TextTrack from './tracks/text-track.js';

import assign from 'object.assign';
import { createTimeRanges } from './utils/time-ranges.js';
Expand Down Expand Up @@ -479,6 +480,13 @@ videojs.trigger = Events.trigger;
*/
videojs.xhr = xhr;

/**
* TextTrack class
*
* @type {Function}
*/
videojs.TextTrack = TextTrack;

// REMOVING: We probably should add this to the migration plugin
// // Expose but deprecate the window[componentName] method for accessing components
// Object.getOwnPropertyNames(Component.components).forEach(function(name){
Expand Down

0 comments on commit 3f8be86

Please sign in to comment.