diff --git a/packages/griffith/src/components/Controller/Controller.js b/packages/griffith/src/components/Controller/Controller.js index 38ece5e4..36628657 100644 --- a/packages/griffith/src/components/Controller/Controller.js +++ b/packages/griffith/src/components/Controller/Controller.js @@ -32,6 +32,8 @@ class Controller extends Component { onVolumeChange: PropTypes.func, onToggleFullScreen: PropTypes.func, show: PropTypes.bool, + hiddenQualityMenu: PropTypes.bool, + hiddenVolumeItem: PropTypes.bool, } static defaultProps = { @@ -42,6 +44,8 @@ class Controller extends Component { volume: 0.5, buffered: 0, isFullScreen: false, + hiddenVolumeItem: false, + hiddenQualityMenu: false, } state = { @@ -256,6 +260,8 @@ class Controller extends Component { onDragStart, onDragEnd, onToggleFullScreen, + hiddenVolumeItem, + hiddenQualityMenu, } = this.props const { isVolumeHovered, @@ -285,17 +291,19 @@ class Controller extends Component { currentTime={displayedCurrentTime} duration={duration} /> - - + {!hiddenQualityMenu && } + {!hiddenVolumeItem && ( + + )}