videojs / videojs-contrib-quality-levels

Other
157 stars 51 forks source link

HEPL!! Problems in the work of the plug-in with the player version v7.0.3 #40

Closed inerc closed 6 years ago

inerc commented 6 years ago

Hi, I updated the player version. And I had a mistake.


constructor(player: Player, options: Options) {
    super(player, options)
    this.options = options
    const qualityLevels = player.qualityLevels()
    this.quality = []
    qualityLevels.on('addqualitylevel', event => {
      this.quality.push(event.qualityLevel)
      this.update()
    })
  }```

Error:
`player.qualityLevels() undefined`
I can not find the cause of the problem. help me please
gkatsev commented 6 years ago

We have a pending PR to bring vjs 7 support to npm/bundler users: #39.

inerc commented 6 years ago

Thank you, guys. We are very much waiting for fix)

gkatsev commented 6 years ago

Should be fixed via in 2.0.5.