Skip to content

Commit

Permalink
Use displayNames for players
Browse files Browse the repository at this point in the history
  • Loading branch information
Webmaster1116 committed Dec 27, 2015
1 parent 9a10dfe commit 944d772
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ReactPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import players from './players'
const PROGRESS_FREQUENCY = 500

export default class ReactPlayer extends Component {
static displayName = 'ReactPlayer'
static propTypes = propTypes
static defaultProps = defaultProps
static canPlay (url) {
Expand Down Expand Up @@ -54,7 +55,7 @@ export default class ReactPlayer extends Component {
const props = active ? { ...activeProps, ref: 'player' } : {}
return (
<Player
key={Player.name}
key={Player.displayName}
youtubeConfig={youtubeConfig}
soundcloudConfig={soundcloudConfig}
vimeoConfig={vimeoConfig}
Expand Down
1 change: 1 addition & 0 deletions src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm)$/
const AUDIO_EXTENSIONS = /\.(mp3|wav)$/

export default class FilePlayer extends Base {
static displayName = 'FilePlayer'
static propTypes = propTypes
static defaultProps = defaultProps
static canPlay (url) {
Expand Down
1 change: 1 addition & 0 deletions src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const RESOLVE_URL = '//api.soundcloud.com/resolve.json'
const MATCH_URL = /^https?:\/\/(soundcloud.com|snd.sc)\/([a-z0-9-]+\/[a-z0-9-]+)$/

export default class SoundCloud extends Base {
static displayName = 'SoundCloud'
static propTypes = propTypes
static defaultProps = defaultProps
static canPlay (url) {
Expand Down
1 change: 1 addition & 0 deletions src/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const DEFAULT_IFRAME_PARAMS = {
}

export default class Vimeo extends Base {
static displayName = 'Vimeo'
static propTypes = propTypes
static defaultProps = defaultProps
static canPlay (url) {
Expand Down
1 change: 1 addition & 0 deletions src/players/YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const DEFAULT_PLAYER_VARS = {
let count = 0

export default class YouTube extends Base {
static displayName = 'YouTube'
static propTypes = propTypes
static defaultProps = defaultProps
static canPlay (url) {
Expand Down

0 comments on commit 944d772

Please sign in to comment.