bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/external-video-player/subtitles/component.jsx
gabriellpr 15eb6c9980 applying subtitles option for the viewers
Implementing subtitles button for viewers

fix: activate/deactivate closed captions

changing button layout

changing button layout

Fix a few things
2022-04-29 16:30:12 -03:00

26 lines
526 B
JavaScript

import React, { Component } from 'react';
import Styled from './styles';
class Subtitles extends Component {
constructor(props) {
super(props);
}
render() {
const { toggleSubtitle, label } = this.props;
return (
<Styled.SubtitlesWrapper>
<Styled.SubtitlesButton
color="primary"
icon="closed_caption"
onClick={() => toggleSubtitle()}
label={label}
hideLabel
/>
</Styled.SubtitlesWrapper>
);
}
}
export default Subtitles;