Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get youtubeProps() {
if (YoutubePlayer.canPlay(this.url)) {
return this.activeProps
} else {
return {
url: "https://youtu.be/RxljKS5rc7w",
volume: 0,
playing: true,
}
}
}
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})