0b5cb04f by Adam Heath

Merge branch 'bf-player-init-not-attached' of /home/git/repositories/brainfood/videojs-contrib-hls

2 parents efb4b4d0 af9ce32d
......@@ -282,8 +282,8 @@ class HlsHandler extends Component {
// tech.player() is deprecated but setup a reference to HLS for
// backwards-compatibility
if (tech.options_ && tech.options_.playerId) {
let _player = videojs(tech.options_.playerId);
if (tech.options_ && tech.options_.tag) {
let _player = videojs(tech.options_.tag);
if (!_player.hasOwnProperty('hls')) {
Object.defineProperty(_player, 'hls', {
......