Skip to content

Commit

Permalink
Fixed canPlaySource export that got lost in last release
Browse files Browse the repository at this point in the history
  • Loading branch information
heff committed Mar 27, 2014
1 parent 825de43 commit af50b8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/js/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ goog.exportProperty(vjs.MediaTechController.prototype, 'setPoster', vjs.MediaTec
goog.exportSymbol('videojs.Html5', vjs.Html5);
goog.exportProperty(vjs.Html5, 'Events', vjs.Html5.Events);
goog.exportProperty(vjs.Html5, 'isSupported', vjs.Html5.isSupported);
goog.exportProperty(vjs.Html5, 'canPlaySource', vjs.Html5.canPlaySource);
goog.exportProperty(vjs.Html5, 'patchCanPlayType', vjs.Html5.patchCanPlayType);
goog.exportProperty(vjs.Html5, 'unpatchCanPlayType', vjs.Html5.unpatchCanPlayType);

Expand Down
7 changes: 5 additions & 2 deletions test/unit/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ test('should be able to access expected MediaTech API methods', function() {
ok(html5Proto.setPoster, 'setPoster should exist on the HTML5 tech');
ok(flashProto.setPoster, 'setPoster should exist on the Flash tech');

ok(videojs.Html5.patchCanPlayType, 'patchCanPlayType is available');
ok(videojs.Html5.unpatchCanPlayType, 'unpatchCanPlayType is available');
ok(videojs.Html5.patchCanPlayType, 'patchCanPlayType should exist for HTML5');
ok(videojs.Html5.unpatchCanPlayType, 'unpatchCanPlayType should exist for HTML5');

ok(videojs.Html5.canPlaySource, 'canPlaySource should exist for HTML5');
ok(videojs.Flash.canPlaySource, 'canPlaySource should exist for Flash');
});

test('should export ready api call to public', function() {
Expand Down

0 comments on commit af50b8e

Please sign in to comment.