Skip to content

Commit

Permalink
Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
tteggel committed Dec 26, 2024
1 parent b549fae commit 10a279d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ptp.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1>Pass the Parcel - Apple Music</h1>
<!-- Buttons for sign-in and snippet playback -->
<div class="controls">
<button id="appleSignInBtn">Sign in to Apple Music</button>
<button id="playSnippetBtn" disabled>Play Snippet</button>
<button id="playSnippetBtn" disabled>Pass The Parcel!</button>
</div>

<script>
Expand Down Expand Up @@ -88,7 +88,8 @@ <h1>Pass the Parcel - Apple Music</h1>
music = MusicKit.getInstance();

// We want to loop the entire playlist when it ends
music.repeatMode = MusicKit.REPEAT_MODE_ALL;
music.shuffleMode = MusicKit.PlayerShuffleMode.songs;
music.repeatMode = MusicKit.PlayerRepeatMode.all;

// Let the user sign in to Apple Music
appleSignInBtn.disabled = false;
Expand Down

0 comments on commit 10a279d

Please sign in to comment.