Hi Team,
I am looking to have a custom control which toggles between 2 video elements in Reactjs app. It adding button but not showing text. Can you please help here.
window.videojs.players['myPlayerId']?.getChild('ControlBar')?.addChild('button', {
value:'heelo',
label:'heelo name',
textContent: "text”
});
HTML content seeing on the browser:
<button class="vjs-control vjs-button" type="button" aria-disabled="false"><span class="vjs-icon-placeholder" aria-hidden="true"></span><span class="vjs-control-text" aria-live="polite"></span></button>
