player.tech.hls -> player.tech_.hls (#854)
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -288,7 +288,7 @@ class HlsHandler extends Component { | ... | @@ -288,7 +288,7 @@ class HlsHandler extends Component { |
288 | if (!_player.hasOwnProperty('hls')) { | 288 | if (!_player.hasOwnProperty('hls')) { |
289 | Object.defineProperty(_player, 'hls', { | 289 | Object.defineProperty(_player, 'hls', { |
290 | get: () => { | 290 | get: () => { |
291 | videojs.log.warn('player.hls is deprecated. Use player.tech.hls instead.'); | 291 | videojs.log.warn('player.hls is deprecated. Use player.tech_.hls instead.'); |
292 | return this; | 292 | return this; |
293 | } | 293 | } |
294 | }); | 294 | }); | ... | ... |
... | @@ -127,7 +127,7 @@ QUnit.test('deprication warning is show when using player.hls', function() { | ... | @@ -127,7 +127,7 @@ QUnit.test('deprication warning is show when using player.hls', function() { |
127 | }; | 127 | }; |
128 | let hls = this.player.hls; | 128 | let hls = this.player.hls; |
129 | 129 | ||
130 | QUnit.equal(warning, 'player.hls is deprecated. Use player.tech.hls instead.', 'warning would have been shown'); | 130 | QUnit.equal(warning, 'player.hls is deprecated. Use player.tech_.hls instead.', 'warning would have been shown'); |
131 | QUnit.ok(hls, 'an instance of hls is returned by player.hls'); | 131 | QUnit.ok(hls, 'an instance of hls is returned by player.hls'); |
132 | videojs.log.warn = oldWarn; | 132 | videojs.log.warn = oldWarn; |
133 | }); | 133 | }); | ... | ... |
-
Please register or sign in to post a comment