react-jplayer
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -64,3 +64,3 @@ 'use strict'; | ||
}, _this.setBar = function (ref) { | ||
return _this.bar = ref; | ||
_this.bar = ref; | ||
}, _temp), _possibleConstructorReturn(_this, _ret); | ||
@@ -67,0 +67,0 @@ } |
@@ -157,3 +157,3 @@ 'use strict'; | ||
}, _this.setJPlayer = function (ref) { | ||
return _this.jPlayer = ref; | ||
_this.jPlayer = ref; | ||
}, _this.requestFullScreen = function () { | ||
@@ -160,0 +160,0 @@ if (_this.props.fullScreen) { |
@@ -358,6 +358,8 @@ 'use strict'; | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
if (nextProps.paused !== this.props.paused) { | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
} | ||
} | ||
@@ -364,0 +366,0 @@ } |
{ | ||
"name": "react-jplayer", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Html5 audio and video player library for React", | ||
@@ -5,0 +5,0 @@ "author": "Martin Dawson <u1356770@gmail.com>", |
@@ -14,3 +14,2 @@ [![Build Status](https://travis-ci.org/jplayer/react-jPlayer.svg?branch=master)](https://travis-ci.org/jplayer/react-jPlayer) | ||
* [Live Demo](#live-demo) | ||
* [Examples](#examples) | ||
@@ -20,3 +19,2 @@ * [Installation](#installation) | ||
+ [UMD](#umd) | ||
* [Examples](#examples-1) | ||
* [Features](#features) | ||
@@ -108,5 +106,2 @@ * [To Note](#to-note) | ||
### Live Demo | ||
http://react-jplayer.azurewebsites.net/ | ||
### Examples | ||
@@ -132,5 +127,2 @@ https://github.com/jplayer/react-jPlayer-examples | ||
### Examples | ||
https://github.com/jplayer/react-jPlayer-examples | ||
### Features | ||
@@ -137,0 +129,0 @@ * Cross compatible with many legacy different Html5 browsers |
@@ -47,3 +47,5 @@ import React from 'react'; | ||
} | ||
setBar = ref => (this.bar = ref) | ||
setBar = (ref) => { | ||
this.bar = ref; | ||
} | ||
render() { | ||
@@ -50,0 +52,0 @@ return React.cloneElement(React.Children.only(this.props.children), { |
@@ -155,3 +155,5 @@ import React from 'react'; | ||
} | ||
setJPlayer = ref => (this.jPlayer = ref) | ||
setJPlayer = (ref) => { | ||
this.jPlayer = ref; | ||
} | ||
requestFullScreen = () => { | ||
@@ -158,0 +160,0 @@ if (this.props.fullScreen) { |
@@ -397,2 +397,2 @@ /* import React from 'react'; | ||
}); | ||
});*/ | ||
}); */ |
@@ -241,6 +241,8 @@ import React from 'react'; | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
if (nextProps.paused !== this.props.paused) { | ||
if (nextProps.paused) { | ||
this.currentMedia.pause(); | ||
} else { | ||
this.currentMedia.play(); | ||
} | ||
} | ||
@@ -247,0 +249,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
567839
12019
730