We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d50545d commit f49b212Copy full SHA for f49b212
2 files changed
src/SizedPlayer.js
@@ -12,6 +12,7 @@ const parseAspectRatio = (aspectRatio) => {
12
const ratioArr = aspectRatio.split(':');
13
const ratio = ratioArr.map(str => Number(str));
14
if (ratio.length !== 2 || Number.isNaN(ratio[0]) || Number.isNaN(ratio[1])) {
15
+ // eslint-disable-next-line
16
console.warn('Invalid aspect ratio supplied to react-simple-video-player, defaulting to 16:9');
17
return [16, 9];
18
}
src/index.js
@@ -81,7 +81,7 @@ export default class VideoPlayer extends PureComponent {
81
if (!this.state.playing) {
82
this.setState({ overlayShown: true });
83
return;
84
- };
+ }
85
86
this.setState({ overlayShown: false });
87
};
0 commit comments