react-player
Advanced tools
Comparing version 0.24.3 to 0.24.4
@@ -7,2 +7,10 @@ # Change Log | ||
#### [v0.24.4](https://github.com/CookPete/react-player/compare/v0.24.3...v0.24.4) | ||
> 14 September 2017 | ||
* Updated TypeScript typings [`#235`](https://github.com/CookPete/react-player/pull/235) | ||
* Updated TypeScript typings [`8c9d14d`](https://github.com/CookPete/react-player/commit/8c9d14d28e1baf8505f0048c6fbc36f7813512d3) | ||
* Prevent warnings when unmounting preloading players [`4c4d2ec`](https://github.com/CookPete/react-player/commit/4c4d2ecb2ba624bffe211cb041a97b1c42da9cc1) | ||
#### [v0.24.3](https://github.com/CookPete/react-player/compare/v0.24.2...v0.24.3) | ||
@@ -9,0 +17,0 @@ > 14 September 2017 |
@@ -15,4 +15,54 @@ import * as React from 'react'; | ||
export interface SoundCloudConfig { | ||
options?: Object; | ||
} | ||
export interface YouTubeConfig { | ||
playerVars?: Object; | ||
preload?: boolean; | ||
} | ||
export interface FacebookConfig { | ||
appId: string; | ||
} | ||
export interface DailyMotionConfig { | ||
params?: Object; | ||
preload?: boolean; | ||
} | ||
export interface VimeoConfig { | ||
iframeParams?: Object; | ||
preload?: boolean; | ||
} | ||
export interface VidmeConfig { | ||
format?: string; | ||
} | ||
export interface WistiaConfig { | ||
options?: Object; | ||
} | ||
export interface FileConfig { | ||
attributes?: Object; | ||
tracks?: TrackProps[]; | ||
forceAudio?: boolean; | ||
forceHLS?: boolean; | ||
forceDASH?: boolean; | ||
} | ||
export interface Config { | ||
soundcloud?: SoundCloudConfig; | ||
youtube?: YouTubeConfig; | ||
facebook?: FacebookConfig; | ||
dailymotion?: DailyMotionConfig; | ||
vimeo?: VimeoConfig; | ||
vidme?: VidmeConfig; | ||
file?: FileConfig; | ||
wistia?: WistiaConfig; | ||
} | ||
export interface ReactPlayerProps { | ||
url?: string|string[]|SourceProps[]; | ||
url?: string | string[] | SourceProps[]; | ||
playing?: boolean; | ||
@@ -24,4 +74,4 @@ loop?: boolean; | ||
playbackRate?: number; | ||
width?: string|number; | ||
height?: string|number; | ||
width?: string | number; | ||
height?: string | number; | ||
style?: Object; | ||
@@ -32,33 +82,11 @@ progressFrequency?: number; | ||
className?: string; | ||
soundcloudConfig?: { | ||
options: Object; | ||
}; | ||
youtubeConfig?: { | ||
playerVars: Object; | ||
preload: boolean; | ||
}; | ||
facebookConfig?: { | ||
appId: string; | ||
}; | ||
dailymotionConfig?: { | ||
params: Object; | ||
preload: boolean; | ||
}; | ||
vimeoConfig?: { | ||
iframeParams: Object; | ||
preload: boolean; | ||
}; | ||
vidmeConfig?: { | ||
format: string; | ||
}; | ||
fileConfig?: { | ||
attributes: Object; | ||
tracks: TrackProps[]; | ||
forceAudio: boolean; | ||
forceHLS: boolean; | ||
forceDASH: boolean; | ||
}; | ||
wistiaConfig?: { | ||
options: Object; | ||
}; | ||
config?: Config; | ||
soundcloudConfig?: SoundCloudConfig; | ||
youtubeConfig?: YouTubeConfig; | ||
facebookConfig?: FacebookConfig; | ||
dailymotionConfig?: DailyMotionConfig; | ||
vimeoConfig?: VimeoConfig; | ||
vidmeConfig?: VidmeConfig; | ||
fileConfig?: FileConfig; | ||
wistiaConfig?: WistiaConfig; | ||
onReady?(): void; | ||
@@ -65,0 +93,0 @@ onStart?(): void; |
@@ -132,2 +132,3 @@ 'use strict'; | ||
value: function stop() { | ||
if (this.preloading) return; | ||
this.callPlayer('unload'); | ||
@@ -134,0 +135,0 @@ } |
@@ -155,2 +155,3 @@ 'use strict'; | ||
value: function stop() { | ||
if (this.preloading) return; | ||
if (!document.body.contains(this.callPlayer('getIframe'))) return; | ||
@@ -157,0 +158,0 @@ this.callPlayer('stopVideo'); |
{ | ||
"name": "react-player", | ||
"version": "0.24.3", | ||
"version": "0.24.4", | ||
"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", |
Sorry, the diff of this file is too big to display
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
820794
31
2643