Video.js: PopupButton and Popup component undefined

Created on 7 Nov 2017  路  6Comments  路  Source: videojs/video.js

Most helpful comment

@asronihidayat so, after some thinking about this, we aren't going to be including PopupButton and Popup back in Video.js by default. Feel free to grab the files though and use them in your project. But be aware that we stopped using PopupButtons because of accessibility issues around our old volume menu button. See some info here: http://blog.videojs.com/feature-spotlight-accessibility/.

All 6 comments

Thanks for the PR @asronihidayat.
Though, looking into this, it was only used in 5.x with the old VolumeMenuButton component which no longer exists. I'm thinking we can just remove these files until/unless they're needed?
Thoughts? @OwenEdwards would be good to have your take as well.

Actually,i use popup and popup button for custom component videojs, but if you really want to remove both of them, i can refactor my code, so, it will compatible with videojs future updated.

Hi, this is not total relevant but while we on the topic, think we are missing a something like ComponentList

I'm implementing something like resolution list like youtube (1080, 720, 480...), that is a list only know length at runtime (when manifest fetched).

Our component currently is just a single component, thing like handleClick, handleMouseDown will point to the root element instead of child element.

In my app I manually add event to child element, that rather cumbersome, but I'm not sure this idea
useful either, what your though ?

@asronihidayat what about if we release the popup stuff as a separate plugin?

I'm leaning towards leaving it out of core but publishing it as a separate plugin. In v6 we already moved videojs-flash out of core and core doesn't use the popup buttons anymore, so, including them seems a bit odd to me.

@asronihidayat so, after some thinking about this, we aren't going to be including PopupButton and Popup back in Video.js by default. Feel free to grab the files though and use them in your project. But be aware that we stopped using PopupButtons because of accessibility issues around our old volume menu button. See some info here: http://blog.videojs.com/feature-spotlight-accessibility/.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

d3x7r0 picture d3x7r0  路  4Comments

onigetoc picture onigetoc  路  4Comments

dingyaguang117 picture dingyaguang117  路  4Comments

pblasi picture pblasi  路  3Comments

uikoo9 picture uikoo9  路  4Comments