Unverified Commit cbf96c2b authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Merge pull request #1283 from laurent22/patch-1

Make seek() throw an exception when using NaN value
parents dece8a2c adf63e5f
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: {