1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1× 1× | import videojs from 'video.js'; const BigPlayButton = videojs.getComponent('BigPlayButton'); class BigVrPlayButton extends BigPlayButton { buildCSSClass() { return `vjs-big-vr-play-button ${super.buildCSSClass()}`; } } videojs.registerComponent('BigVrPlayButton', BigVrPlayButton); export default BigVrPlayButton; |