You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, now, the control bar will only loop through its children array to look for items. This means that the volumeMenuButton will get disabled correctly but it won't actually add muteToggle and volumeControl because it isn't in the list of items it's going through.
To be more clear to anyone else reading this; it's about adding new children that are not in the children array for a component (in this case, the controlBar component has the volumeMenuButton in its children, but not the muteToggle or volumeControl).
For, example, if you want to switch the
volumeMenuButton
for the oldmuteToggle
andvolumeControl
, you could previously doHowever, now, the control bar will only loop through its children array to look for items. This means that the
volumeMenuButton
will get disabled correctly but it won't actually addmuteToggle
andvolumeControl
because it isn't in the list of items it's going through.We probably should loop through the items in the array but also loop through the options object to make sure whether we need to add any other components.
https://github.com/videojs/video.js/blob/master/src/js/component.js#L490
The text was updated successfully, but these errors were encountered: