Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get activePlayer() {
if (YoutubePlayer.canPlay(this.url)) {
return this.youtubePlayer
} else if (SoundcloudPlayer.canPlay(this.url)) {
return this.soundcloudPlayer
}
}
onSeekChange = value => this.setState({played: value})
get soundcloudProps() {
if (SoundcloudPlayer.canPlay(this.url)) {
return this.activeProps
} else {
return {
url: "https://soundcloud.com/miami-nights-1984/accelerated",
playing: false,
}
}
}