Do not autoplay in mobile in `setMusic`

This change appears to have been made to support playlist auto-advance in mobile. This was a workaround to handle the autoplay guard lower in the function which was removed in an earlier commit on this branch. The play call is now handled external to the `setMusic` call, which allows external logic to determine whether play should be called on mobile or not.
This commit is contained in:
Eric Robinson 2017-12-12 13:40:39 -05:00
parent fa66dd90f4
commit 17c80e4083
1 changed files with 0 additions and 1 deletions

View File

@ -478,7 +478,6 @@ class APlayer {
// get this audio object
if (this.isMobile && this.audio) {
this.audio.src = this.music.url;
this.play();
}
else if (!this.isMobile && this.audios[indexMusic]) {
this.audio = this.audios[indexMusic];