From 6c075f4752f828eeaff57fd3d0c4b849a721fc92 Mon Sep 17 00:00:00 2001 From: Joe Forbes Date: Tue, 26 Jun 2018 09:21:49 -0700 Subject: [PATCH] ignore: update deprecation warning (#117) --- src/videojs-http-streaming.js | 2 +- test/videojs-http-streaming.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/videojs-http-streaming.js b/src/videojs-http-streaming.js index db56111d..e3d8a0d0 100644 --- a/src/videojs-http-streaming.js +++ b/src/videojs-http-streaming.js @@ -271,7 +271,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.'); tech.trigger({ type: 'usage', name: 'hls-player-access' }); return this; } diff --git a/test/videojs-http-streaming.test.js b/test/videojs-http-streaming.test.js index 7eca3c0f..543ec03f 100644 --- a/test/videojs-http-streaming.test.js +++ b/test/videojs-http-streaming.test.js @@ -113,7 +113,7 @@ QUnit.test('deprecation warning is show when using player.hls', function(assert) let hls = this.player.hls; assert.equal(hlsPlayerAccessEvents, 1, 'an hls-player-access event was fired'); - assert.equal(warning, 'player.hls is deprecated. Use player.tech_.hls instead.', 'warning would have been shown'); + assert.equal(warning, 'player.hls is deprecated. Use player.tech().hls instead.', 'warning would have been shown'); assert.ok(hls, 'an instance of hls is returned by player.hls'); videojs.log.warn = oldWarn; });