Skip to content

Commit

Permalink
Change onProgress frequency to 1 second
Browse files Browse the repository at this point in the history
Half a second caused weirdness when displaying duration due to rounding, plus one second seems cleaner (and of course better for performance)
  • Loading branch information
cookpete committed Jan 21, 2016
1 parent d42c6d3 commit 45746d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'array.prototype.find'
import { propTypes, defaultProps } from './props'
import players from './players'

const PROGRESS_FREQUENCY = 500
const PROGRESS_FREQUENCY = 1000

export default class ReactPlayer extends Component {
static displayName = 'ReactPlayer';
Expand Down

0 comments on commit 45746d9

Please sign in to comment.