Scan with your iPhone to install
a music controller
What's New
Version 1.0
First release
What it does
25 actions-
Choose from MenuMusic Controller
-
Choose from MenuSeek Time
-
Seek
-
Choose from MenuSet Playback Destination
-
Setplaybackdestination
-
Choose from MenuSelect Music
-
Choose from MenuPlay Specific Music
-
Play Music
-
Choose from MenuGet Current Song
-
Get Current Song
-
Show Alert
-
Choose from MenuSkip Back
-
Skip Back
-
Choose from MenuPlay/Pause
-
Play/Pause
-
Choose from MenuSkip Forward
-
Skip Forward
-
Choose from MenuHandoff Music
-
Handoffplayback
-
Choose from MenuGet Artist
-
Get Music Detail
-
Choose from MenuClear Up Next
-
Clear Up Next
-
Choose from MenuAdd to Up Next
-
Play Next
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/music'
#define color red
#define glyph musicNoteAlt
menu "Music Controller" {
item "Seek Time":
seek(, Ask)
item "Set Playback Destination":
rawAction("is.workflow.actions.setplaybackdestination", {
"WFMediaRoute": "Ask"
})
item "Select Music":
item "Play Specific Music":
playMusic(Ask)
item "Get Current Song":
const CurrentSong = getCurrentSong()
confirm(CurrentSong)
item "Skip Back":
skipBack()
item "Play/Pause":
pause()
item "Skip Forward":
skipFwd()
item "Handoff Music":
rawAction("is.workflow.actions.handoffplayback", {
"WFDestinationMediaRoute": "Ask",
"WFSourceMediaRoute": "Ask"
})
item "Get Artist":
getMusicDetail(CurrentSong, "")
item "Clear Up Next":
clearUpNext()
item "Add to Up Next":
playLater(CurrentSong)
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by theshortcutguy2
You Might Also Like
Advertisement