Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
}
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
}
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
}
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
}
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
}
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
this.props.prev()
})
}
componentDidMount () {
// setTimeout(() => {
// api.favoriteArtists().then(res => {
// console.log(res)
// })
// }, 1500)
MusicControl.enableBackgroundMode(true)
MusicControl.enableControl('play', true)
MusicControl.enableControl('pause', true)
MusicControl.enableControl('nextTrack', true)
MusicControl.enableControl('previousTrack', true)
MusicControl.enableControl('seekForward', false)
MusicControl.enableControl('seekBackward', false)
MusicControl.on('play', () => {
this.props.changeStatus('PLAYING')
})
MusicControl.on('pause', () => {
this.props.changeStatus('PAUSED')
})
MusicControl.on('nextTrack', () => {
this.props.next()
})
MusicControl.on('previousTrack', () => {
_setNowPlaying(track: Track): void {
let config = { ...this.setNowPlayingConfig };
let info = this._getInfo(track.additionalInfo);
MusicControl.setNowPlaying({
...info,
color: config.color, // Notification Color - Android Only
notificationIcon: config.notificationIcon // Android Only (String), Android Drawable resource name for a custom notification icon
});
}