Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a96dbc3e
authored
2016-09-30 14:45:09 +0100
by
mister-ben
Committed by
David LaPalomento
2016-09-30 09:45:09 -0400
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
player.tech.hls -> player.tech_.hls (#854)
1 parent
77c25202
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/videojs-contrib-hls.js
test/videojs-contrib-hls.test.js
src/videojs-contrib-hls.js
View file @
a96dbc3
...
...
@@ -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
;
}
});
...
...
test/videojs-contrib-hls.test.js
View file @
a96dbc3
...
...
@@ -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
;
});
...
...
Please
register
or
sign in
to post a comment