react-jw-player
Advanced tools
Comparing version 1.18.1 to 1.18.3
@@ -12,3 +12,3 @@ 'use strict'; | ||
this.props.onAutoStart(event); | ||
} else if (this.state.hasPlayed && event.oldstate === 'paused') { | ||
} else if (this.state.hasPlayed && (event.oldstate === 'buffering' || event.oldstate === 'paused')) { | ||
this.props.onResume(event); | ||
@@ -15,0 +15,0 @@ } else { |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _reactFastCompare = require('react-fast-compare'); | ||
var _reactFastCompare2 = _interopRequireDefault(_reactFastCompare); | ||
var _createEventHandlers = require('./create-event-handlers'); | ||
@@ -116,3 +120,3 @@ | ||
var hasFileChanged = this.props.file !== nextProps.file; | ||
var hasPlaylistChanged = this.props.playlist !== nextProps.playlist; | ||
var hasPlaylistChanged = !(0, _reactFastCompare2.default)(this.props.playlist, nextProps.playlist); | ||
@@ -119,0 +123,0 @@ return hasFileChanged || hasPlaylistChanged; |
{ | ||
"name": "react-jw-player", | ||
"version": "1.18.1", | ||
"version": "1.18.3", | ||
"description": "A React component for launching JW Player instances on the client.", | ||
@@ -64,3 +64,6 @@ "main": "dist/react-jw-player.js", | ||
"react": "^15.4.1 || ^16.0.0" | ||
}, | ||
"dependencies": { | ||
"react-fast-compare": "^2.0.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34987
530
3
+ Addedreact-fast-compare@^2.0.1
+ Addedreact-fast-compare@2.0.4(transitive)