How to insert a button that may be modified without refreshing the page to the videoJS controlBar?

I want to add a button inside the controlBar of the player that is made by using videoJS. But, I also wish that the value of this button will change automatically when the video resolution change.