Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-player

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player - npm Package Compare versions

Comparing version 0.17.1 to 0.17.2

6

CHANGELOG.md

@@ -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

2

lib/players/FilePlayer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc