import videojs , { VideoJsPlayer } from 'video.js' ; interface IDefaultControlBar extends videojs . ControlBar { [ key ] : any ; } function initializePlayerComponentsDisplay ( player , hideList ? ) { const controlBar = player . controlBar ; hideList && hideList . map ( component => { controlBar [ component ] && controlBar [ component ] . hide ( ) ; } ) ; } export default initializePlayerComponentsDisplay ;