Skip to content

Commit 23ce9ca

Browse files
Fixed #2 Added glamorous support
1 parent 0944015 commit 23ce9ca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export default class VideoPlayer extends PureComponent {
4949
height: PropTypes.number,
5050
autosize: PropTypes.bool,
5151
autoplay: PropTypes.bool,
52-
aspectRatio: PropTypes.string
52+
aspectRatio: PropTypes.string,
53+
className: PropTypes.string,
54+
css: PropTypes.object
5355
};
5456

5557
static defaultProps = {
@@ -88,10 +90,12 @@ export default class VideoPlayer extends PureComponent {
8890

8991
render = () => {
9092
const playing = this.state.playing;
91-
const autosize = this.props.autosize;
93+
const { autosize, className, css } = this.props;
9294
return (
9395
<Player
9496
autosize={autosize}
97+
className={className}
98+
css={css}
9599
onMouseOver={this.onMouseOver}
96100
onMouseLeave={this.onMouseLeave}
97101
>

0 commit comments

Comments
 (0)