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
Currently, the AirPlay plugin allows you to pass a string literal option called buttonText that becomes the button's .vjs-control-text text. However, the AirPlay Button component overrides the createControlTextEl method and does not add the aria-label to the button as its parent does.
A simpler method would be to call this.controlText('Start AirPlay') from the constructor, and let the Button component handle adding the control text. This has the added advantage of integrating with Video.js' localization API.
The text was updated successfully, but these errors were encountered:
yokuze
added a commit
to yokuze/videojs-airplay
that referenced
this issue
Oct 25, 2017
Currently, the AirPlay plugin allows you to pass a string literal option called
buttonText
that becomes the button's.vjs-control-text
text. However, the AirPlay Button component overrides thecreateControlTextEl
method and does not add thearia-label
to the button as its parent does.A simpler method would be to call
this.controlText('Start AirPlay')
from the constructor, and let the Button component handle adding the control text. This has the added advantage of integrating with Video.js' localization API.The text was updated successfully, but these errors were encountered: