diff --git a/.gitignore b/.gitignore index bbf713f5..dfe09e68 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ +.idea node_modules npm-debug.log +yarn-error.log .DS_Store /lib /demo diff --git a/CHANGELOG.md b/CHANGELOG.md index 80e4efb1..a55c8924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,43 @@ All notable changes to this project will be documented in this file. Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v1.6.1](https://github.com/CookPete/react-player/compare/v1.6.0...v1.6.1) +> 20 May 2018 +- Bump HLS.js [`#403`](https://github.com/CookPete/react-player/pull/403) + +#### [v1.6.0](https://github.com/CookPete/react-player/compare/v1.5.1...v1.6.0) +> 17 May 2018 +- Add support for MediaStream objects [`#398`](https://github.com/CookPete/react-player/issues/398) +- Prevent errors when switching URLs whilst loading [`#377`](https://github.com/CookPete/react-player/issues/377) +- Prevent loading SDKs multiple times [`#391`](https://github.com/CookPete/react-player/issues/391) + +#### [v1.5.1](https://github.com/CookPete/react-player/compare/v1.5.0...v1.5.1) +> 15 May 2018 +- Add proper mute support to fix autoplay [`#395`](https://github.com/CookPete/react-player/issues/395) [`#389`](https://github.com/CookPete/react-player/issues/389) +- Fix vimeo config options property [`a645eee`](https://github.com/CookPete/react-player/commit/a645eeead7793bd57ff64dbe3bec0c2077cb8a25) +- Skip soundcloud tests [`3958f8d`](https://github.com/CookPete/react-player/commit/3958f8dea68aba7d641b5292f7aacf001d18123f) +- Clear duration check timeout when unmounting [`0f7b684`](https://github.com/CookPete/react-player/commit/0f7b684396cef8c43807778f7b855ead9323016f) + +#### [v1.5.0](https://github.com/CookPete/react-player/compare/v1.4.0...v1.5.0) +> 23 April 2018 +- Fix FilePlayer getSecondsLoaded [`#380`](https://github.com/CookPete/react-player/pull/380) +- Add support for dropbox files [`#379`](https://github.com/CookPete/react-player/issues/379) +- Tidy up getSecondsLoaded [`93351f9`](https://github.com/CookPete/react-player/commit/93351f92b7841cd6f99cf805bf3922d46fdec2cc) +- Update readme [`de639e4`](https://github.com/CookPete/react-player/commit/de639e41915ecc315f5a84a535d936c455d653e2) + +#### [v1.4.0](https://github.com/CookPete/react-player/compare/v1.3.2...v1.4.0) +> 11 April 2018 +- Add support for custom players [`#364`](https://github.com/CookPete/react-player/pull/364) +- Add instance methods to single player imports [`#376`](https://github.com/CookPete/react-player/issues/376) +- Fix tests [`597bf33`](https://github.com/CookPete/react-player/commit/597bf332b839c89b91aae4934b0e324bd43d635f) + +#### [v1.3.2](https://github.com/CookPete/react-player/compare/v1.3.1...v1.3.2) +> 5 April 2018 +- Render video element when poster is set [`#369`](https://github.com/CookPete/react-player/issues/369) +- Add https to Twitch SDK URL [`#367`](https://github.com/CookPete/react-player/issues/367) +- Add forceVideo option for FilePlayer [`a743396`](https://github.com/CookPete/react-player/commit/a74339606a6c7c773ea11d1eee1f43dde859a53b) +- Remove migration note [`308bca9`](https://github.com/CookPete/react-player/commit/308bca9af64f04382a1f3d141942860c85372fc2) + #### [v1.3.1](https://github.com/CookPete/react-player/compare/v1.3.0...v1.3.1) > 22 March 2018 - Fix file player load sequence on iOS [`#340`](https://github.com/CookPete/react-player/issues/340) diff --git a/README.md b/README.md index 0ba0fde7..89cf7472 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,6 @@ A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, Mixcloud, and DailyMotion. Not using React? No problem.

-#### Migrating to `1.0.0` - -All existing implementations of `ReactPlayer` should still work without any changes after migrating. The major changes are to how the component works internally. Keep an eye out for bugs and [raise an issue](https://github.com/CookPete/react-player/issues/new) if one doesn’t already exist. - ### Usage ```bash @@ -58,11 +54,15 @@ For platforms like [Meteor](https://www.meteor.com) without direct use of `npm` * 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 IE11 you will need to use [`babel-polyfill`](https://babeljs.io/docs/usage/polyfill) or a similar ES2015+ polyfill. +#### Autoplay + +As of Chrome 66, [videos must be `muted` in order to play automatically](https://www.theverge.com/2018/3/22/17150870/google-chrome-autoplay-videos-sound-mute-update). Some players, like Facebook, cannot be unmuted until the user interacts with the video, so you may want to enable `controls` to allow users to unmute videos themselves. + ### Props Prop | Description | Default ---- | ----------- | ------- -`url` | The url of a video or song to play +`url` | The url of a video or song to play
  ◦  Can be an [array](#multiple-sources-and-tracks) or [`MediaStream`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream) object `playing` | Set to `true` or `false` to pause or play the media | `false` `loop` | Set to `true` or `false` to loop the media | `false` `controls` | Set to `true` or `false` to display native player controls
  ◦  Vimeo, Twitch and Wistia player will always display controls | `false` @@ -134,7 +134,7 @@ Key | Options `mixcloud` | `options`: Override the [default player options](https://www.mixcloud.com/developers/widget/#methods) `dailymotion` | `params`: Override the [default player vars](https://developer.dailymotion.com/player#player-parameters)
`preload`: Used for [preloading](#preloading) `twitch` | `options`: Override the [default player options](https://dev.twitch.tv/docs/embed) -`file` | `attributes`: Apply [element attributes](https://developer.mozilla.org/en/docs/Web/HTML/Element/video#Attributes)
`forceAudio`: Always render an `