a96dbc3e by mister-ben Committed by David LaPalomento

player.tech.hls -> player.tech_.hls (#854)

1 parent 77c25202
......@@ -288,7 +288,7 @@ class HlsHandler extends Component {
if (!_player.hasOwnProperty('hls')) {
Object.defineProperty(_player, 'hls', {
get: () => {
videojs.log.warn('player.hls is deprecated. Use player.tech.hls instead.');
videojs.log.warn('player.hls is deprecated. Use player.tech_.hls instead.');
return this;
}
});
......
......@@ -127,7 +127,7 @@ QUnit.test('deprication warning is show when using player.hls', function() {
};
let hls = this.player.hls;
QUnit.equal(warning, 'player.hls is deprecated. Use player.tech.hls instead.', 'warning would have been shown');
QUnit.equal(warning, 'player.hls is deprecated. Use player.tech_.hls instead.', 'warning would have been shown');
QUnit.ok(hls, 'an instance of hls is returned by player.hls');
videojs.log.warn = oldWarn;
});
......