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 2.5.0 to 2.6.0

1

index.d.ts

@@ -91,2 +91,3 @@ import * as React from 'react';

pip?: boolean;
stopOnUnmount?: boolean;
light?: boolean | string;

@@ -93,0 +94,0 @@ wrapper?: any;

@@ -91,2 +91,3 @@ import * as React from 'react';

pip?: boolean;
stopOnUnmount?: boolean;
light?: boolean | string;

@@ -93,0 +94,0 @@ wrapper?: any;

2

lazy/Player.js

@@ -247,3 +247,3 @@ "use strict";

if (this.isReady) {
if (this.isReady && this.props.stopOnUnmount) {
this.player.stop();

@@ -250,0 +250,0 @@

@@ -322,2 +322,4 @@ "use strict";

_this2.hls.attachMedia(_this2.player);
_this2.props.onLoaded();
});

@@ -343,2 +345,4 @@ }

}
_this2.props.onLoaded();
});

@@ -357,2 +361,4 @@ }

_this2.flv.load();
_this2.props.onLoaded();
});

@@ -359,0 +365,0 @@ }

@@ -150,2 +150,6 @@ "use strict";

});
_this2.player.on('bufferstart', _this2.props.onBuffer);
_this2.player.on('bufferend', _this2.props.onBufferEnd);
}, this.props.onError);

@@ -152,0 +156,0 @@ }

@@ -35,2 +35,3 @@ "use strict";

pip: bool,
stopOnUnmount: bool,
light: oneOfType([bool, string]),

@@ -120,2 +121,3 @@ playIcon: node,

pip: false,
stopOnUnmount: true,
light: false,

@@ -122,0 +124,0 @@ wrapper: 'div',

@@ -247,3 +247,3 @@ "use strict";

if (this.isReady) {
if (this.isReady && this.props.stopOnUnmount) {
this.player.stop();

@@ -250,0 +250,0 @@

@@ -322,2 +322,4 @@ "use strict";

_this2.hls.attachMedia(_this2.player);
_this2.props.onLoaded();
});

@@ -343,2 +345,4 @@ }

}
_this2.props.onLoaded();
});

@@ -357,2 +361,4 @@ }

_this2.flv.load();
_this2.props.onLoaded();
});

@@ -359,0 +365,0 @@ }

@@ -150,2 +150,6 @@ "use strict";

});
_this2.player.on('bufferstart', _this2.props.onBuffer);
_this2.player.on('bufferend', _this2.props.onBufferEnd);
}, this.props.onError);

@@ -152,0 +156,0 @@ }

@@ -35,2 +35,3 @@ "use strict";

pip: bool,
stopOnUnmount: bool,
light: oneOfType([bool, string]),

@@ -120,2 +121,3 @@ playIcon: node,

pip: false,
stopOnUnmount: true,
light: false,

@@ -122,0 +124,0 @@ wrapper: 'div',

{
"name": "react-player",
"version": "2.5.0",
"version": "2.6.0",
"description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,1 +1,8 @@

<div align='center'>
<sub>I hate ads as much as you, but maintaining this takes time and life is short. Click below to support the library.</sub>
<a href='https://tracking.gitads.io/?repo=react-player'>
<img src='https://images.gitads.io/react-player' alt='GitAds' />
</a>
</div>
<h1 align='center'>

@@ -95,2 +102,3 @@ ReactPlayer

`pip` | Set to `true` or `false` to enable or disable [picture-in-picture mode](https://developers.google.com/web/updates/2018/10/watch-video-using-picture-in-picture)<br/>&nbsp; ◦ &nbsp;Only available when playing file URLs in [certain browsers](https://caniuse.com/#feat=picture-in-picture) | `false`
`stopOnUnmount` | If you are using `pip` you may want to use `stopOnUnmount={false}` to continue playing in picture-in-picture mode even after ReactPlayer unmounts | `true`
`wrapper` | Element or component to use as the container element | `div`

@@ -97,0 +105,0 @@ `playIcon` | Element or component to use as the play icon in light mode

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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