react-player
Advanced tools
Comparing version 0.17.1 to 0.17.2
@@ -7,2 +7,8 @@ # Change Log | ||
#### [v0.17.2](https://github.com/CookPete/react-player/compare/v0.17.1...v0.17.2) | ||
> 7 May 2017 | ||
* Add forceAudio to fileConfig [`#188`](https://github.com/CookPete/react-player/issues/188) | ||
#### [v0.17.1](https://github.com/CookPete/react-player/compare/v0.17.0...v0.17.1) | ||
@@ -9,0 +15,0 @@ > 5 May 2017 |
@@ -170,3 +170,3 @@ 'use strict'; | ||
var Media = AUDIO_EXTENSIONS.test(url) ? 'audio' : 'video'; | ||
var Media = AUDIO_EXTENSIONS.test(url) || fileConfig.forceAudio ? 'audio' : 'video'; | ||
var style = { | ||
@@ -173,0 +173,0 @@ width: '100%', |
@@ -57,3 +57,4 @@ 'use strict'; | ||
fileConfig: shape({ | ||
attributes: object | ||
attributes: object, | ||
forceAudio: bool | ||
}), | ||
@@ -105,3 +106,4 @@ onReady: func, | ||
fileConfig: { | ||
attributes: {} | ||
attributes: {}, | ||
forceAudio: false | ||
}, | ||
@@ -108,0 +110,0 @@ onReady: function onReady() {}, |
{ | ||
"name": "react-player", | ||
"version": "0.17.1", | ||
"version": "0.17.2", | ||
"description": "A react component for playing a variety of URLs, including file paths, YouTube, Facebook, SoundCloud, Streamable, Vidme, Vimeo and Wistia", | ||
@@ -5,0 +5,0 @@ "main": "lib/ReactPlayer.js", |
@@ -117,3 +117,3 @@ ReactPlayer | ||
`dailymotionConfig` | Configuration object for the DailyMotion player.<br />Set `params` to override the [default player vars](https://developer.dailymotion.com/player#player-parameters).<br />Set `preload` for [preloading](#preloading). | ||
`fileConfig` | Configuration object for the file player.<br />Set `attributes` to apply [element attributes](https://developer.mozilla.org/en/docs/Web/HTML/Element/video#Attributes). | ||
`fileConfig` | Configuration object for the file player.<br />Set `attributes` to apply [element attributes](https://developer.mozilla.org/en/docs/Web/HTML/Element/video#Attributes).<br />Set `forceAudio` to always render an `<audio>` element. | ||
`facebookConfig` | Configuration object for the Facebook player.<br />Set `appId` to your own [Facebook app ID](https://developers.facebook.com/docs/apps/register#app-id). | ||
@@ -120,0 +120,0 @@ |
Sorry, the diff of this file is too big to display
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
950030
6001