react-player
Advanced tools
Comparing version 0.24.6 to 0.25.0
@@ -7,2 +7,10 @@ # Change Log | ||
#### [v0.25.0](https://github.com/CookPete/react-player/compare/v0.24.6...v0.25.0) | ||
> 4 October 2017 | ||
* Update polyfill info [`#239`](https://github.com/CookPete/react-player/issues/239) | ||
* Use React 16 for demo [`#241`](https://github.com/CookPete/react-player/issues/241) | ||
* Tweak vimeo player logic [`#240`](https://github.com/CookPete/react-player/issues/240) | ||
#### [v0.24.6](https://github.com/CookPete/react-player/compare/v0.24.5...v0.24.6) | ||
@@ -9,0 +17,0 @@ > 28 September 2017 |
@@ -78,4 +78,2 @@ import * as React from 'react'; | ||
playsinline?: boolean; | ||
hidden?: boolean; | ||
className?: string; | ||
config?: Config; | ||
@@ -103,3 +101,7 @@ soundcloudConfig?: SoundCloudConfig; | ||
export default class ReactPlayer extends React.Component<ReactPlayerProps, any> { | ||
static canPlay(url: string): boolean; | ||
seekTo(fraction: number): void; | ||
getCurrentTime(): number; | ||
getDuration(): number; | ||
getInternalPlayer(key?: string): Object; | ||
} |
@@ -76,3 +76,3 @@ 'use strict'; | ||
if (this.isReady) { | ||
this.player.loadVideo(id); | ||
this.player.loadVideo(id)['catch'](this.props.onError); | ||
return; | ||
@@ -90,8 +90,8 @@ } | ||
})); | ||
_this2.player.on('loaded', function () { | ||
_this2.onReady(); | ||
_this2.player.ready().then(function () { | ||
var iframe = _this2.container.querySelector('iframe'); | ||
iframe.style.width = '100%'; | ||
iframe.style.height = '100%'; | ||
}); | ||
})['catch'](_this2.props.onError); | ||
_this2.player.on('loaded', _this2.onReady); | ||
_this2.player.on('play', function (_ref2) { | ||
@@ -167,3 +167,6 @@ var duration = _ref2.duration; | ||
var style = { | ||
width: '100%', | ||
height: '100%', | ||
overflow: 'hidden', | ||
backgroundColor: 'black', | ||
display: this.props.url ? 'block' : 'none' | ||
@@ -170,0 +173,0 @@ }; |
{ | ||
"name": "react-player", | ||
"version": "0.24.6", | ||
"version": "0.25.0", | ||
"description": "A react component for playing a variety of URLs, including file paths, YouTube, Facebook, SoundCloud, Streamable, Vidme, Vimeo and Wistia", | ||
@@ -9,5 +9,2 @@ "main": "lib/ReactPlayer.js", | ||
"clean": "rimraf lib demo", | ||
"build:demo": "cross-env NODE_ENV=production webpack --config webpack.production.babel.js", | ||
"build:browser": "cross-env NODE_ENV=production webpack --config webpack.browser.babel.js", | ||
"build:compile": "cross-env NODE_ENV=production babel src -d lib --ignore src/demo", | ||
"start": "webpack-dev-server", | ||
@@ -17,6 +14,9 @@ "lint": "standard --verbose | snazzy", | ||
"coverage": "codecov", | ||
"build:lib": "cross-env NODE_ENV=production babel src -d lib --ignore src/demo", | ||
"build:demo": "cross-env NODE_ENV=production webpack --config webpack.demo.babel.js", | ||
"build:dist": "cross-env NODE_ENV=production webpack --config webpack.dist.babel.js", | ||
"preversion": "npm run lint", | ||
"version": "npm run update-changelog && npm run build:browser && git add CHANGELOG.md dist", | ||
"version": "npm run update-changelog && npm run build:dist && git add CHANGELOG.md dist", | ||
"update-changelog": "auto-changelog --package --template compact", | ||
"prepublish": "npm run build:compile && npm run build:browser", | ||
"prepublishOnly": "npm run build:lib && npm run build:dist", | ||
"postpublish": "npm run clean" | ||
@@ -60,2 +60,3 @@ }, | ||
"babel-plugin-transform-es3-property-literals": "^6.8.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-es2015": "^6.16.0", | ||
@@ -68,3 +69,2 @@ "babel-preset-react": "^6.16.0", | ||
"css-loader": "^0.28.0", | ||
"es6-promise": "^4.0.3", | ||
"exports-loader": "^0.6.3", | ||
@@ -82,6 +82,6 @@ "extract-text-webpack-plugin": "^3.0.0", | ||
"karma-webpack": "^2.0.2", | ||
"mocha": "^3.1.0", | ||
"mocha": "^4.0.0", | ||
"node-sass": "^4.1.1", | ||
"react": "^15.3.2", | ||
"react-dom": "^15.3.2", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-hot-loader": "3.0.0-beta.7", | ||
@@ -93,3 +93,3 @@ "rimraf": "^2.5.4", | ||
"standard": "^10.0.0", | ||
"style-loader": "^0.18.2", | ||
"style-loader": "^0.19.0", | ||
"webpack": "^3.3.0", | ||
@@ -96,0 +96,0 @@ "webpack-dev-server": "^2.7.1", |
@@ -17,3 +17,5 @@ ReactPlayer | ||
If you are using `npm` and need to support [browsers without `Promise`](http://caniuse.com/#feat=promises) you will need a [`Promise` polyfill](https://github.com/stefanpenner/es6-promise). To support `Streamable` or `Vidme` videos you will also need a [`fetch` polyfill](https://github.com/github/fetch) for [browsers without `fetch`](http://caniuse.com/#feat=fetch) | ||
* If you are using `npm` and need to support [browsers without `Promise`](http://caniuse.com/#feat=promises) you will need a [`Promise` polyfill](https://github.com/stefanpenner/es6-promise). | ||
* To support `Vidme` videos you will need a [`fetch` polyfill](https://github.com/github/fetch) for [browsers without `fetch`](http://caniuse.com/#feat=fetch) | ||
* To support IE11 you will need to use [`babel-polyfill`](https://babeljs.io/docs/usage/polyfill) or a similar ES2015+ polyfill. | ||
@@ -20,0 +22,0 @@ ### Usage |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
238
678926
30
2665