Skip to content

Commit 17c80e4

Browse files
committed
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.
1 parent fa66dd9 commit 17c80e4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/APlayer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ class APlayer {
478478
// get this audio object
479479
if (this.isMobile && this.audio) {
480480
this.audio.src = this.music.url;
481-
this.play();
482481
}
483482
else if (!this.isMobile && this.audios[indexMusic]) {
484483
this.audio = this.audios[indexMusic];

0 commit comments

Comments
 (0)