Unverified Commit adf63e5f authored by Laurent Cozic's avatar Laurent Cozic Committed by GitHub
Browse files

Make seek() throw an exception when using NaN value

parent b9832c6e
Loading
Loading
Loading
Loading
+2 −0
Changes for Video.js: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -51,6 +51,8 @@ export default class Video extends Component {
  }

  seek = (time, tolerance = 100) => {
    if (isNaN(time)) throw new Error('Specified time is not a number');
    
    if (Platform.OS === 'ios') {
      this.setNativeProps({
        seek: {