Skip to content

Commit

Permalink
Only include played amount in onProgress when playing
Browse files Browse the repository at this point in the history
  • Loading branch information
webmiraclepro committed Apr 11, 2016
1 parent c04a4c5 commit 674ca5b
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 @@ -41,7 +41,7 @@ export default class ReactPlayer extends Component {
if (loaded !== null && loaded !== this.prevLoaded) {
progress.loaded = this.prevLoaded = loaded
}
if (played !== null && played !== this.prevPlayed) {
if (played !== null && played !== this.prevPlayed && this.props.playing) {
progress.played = this.prevPlayed = played
}
if (progress.loaded || progress.played) {
Expand Down

0 comments on commit 674ca5b

Please sign in to comment.