clappr / clappr-level-selector-plugin

Clappr Level Selector Plugin
MIT License
76 stars 56 forks source link

Plugin not working with Clappr 0.2.52 #36

Closed mikeevstropov closed 8 years ago

mikeevstropov commented 8 years ago

When i try to switch level i have error on console in all browsers.

Uncaught TypeError: Cannot set property 'currentLevel' of undefined

Reproduse at http://cdn.clappr.io/

var playerElement = document.getElementById("player-wrapper");

var player = new Clappr.Player({
  source: 'http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8',
  baseUrl: '/latest',
  poster: 'http://clappr.io/poster.png',
  mute: true,
  plugins: {
    'core': [LevelSelector]
  },
  height: 360,
  width: 640
});

player.attachTo(playerElement);
leandromoreira commented 8 years ago

Thanks I'll check this when I can

me-vlad commented 8 years ago

I see error in console just when hlsjs playback is used, with FlasHLS playback plugin works for me

leandromoreira commented 8 years ago

https://github.com/clappr/clappr/commit/4c38f5adcce75eaf232016993208bb848402d699