Scan with your iPhone to install
A simple remote for media player on your iOS device. You dont have to open spotify if you dont want to, but there is an option for it anyways.
What's New
Version 1.0
First release
What it does
27 actions-
Choose from MenuMusic Remote
-
Choose from MenuPLAY/PAUSE
-
Play/Pause
-
Choose from MenuSKIP FORWARD
-
Skip Forward
-
Choose from MenuSKIP BACK TO BEGINNING
-
Skip Back
-
Choose from MenuSKIP BACK TO PREVIOUS SONG
-
Skip Back
-
Choose from MenuVOLUME + 15%
-
Get Device Details
-
Calculate
-
Set Volume
-
Choose from MenuVOLUME - 15%
-
Get Device Details
-
Calculate
-
Set Volume
-
Choose from MenuVOLUME + 25%
-
Get Device Details
-
Calculate
-
Set Volume
-
Choose from MenuVOLUME - 25%
-
Get Device Details
-
Calculate
-
Set Volume
-
Choose from MenuOPEN SPOTIFY
-
Open App
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 green
#define glyph livePlay
menu "Music Remote" {
item "PLAY/PAUSE":
play()
item "SKIP FORWARD":
skipFwd()
item "SKIP BACK TO BEGINNING":
skipBack()
item "SKIP BACK TO PREVIOUS SONG":
skipBack()
item "VOLUME + 15%":
const CurrentVolume = getDeviceDetail("Current Volume")
const CalculationResult = CurrentVolume + 0.15
setVolume(CalculationResult)
item "VOLUME - 15%":
const CurrentVolume1 = getDeviceDetail("Current Volume")
const CalculationResult1 = CurrentVolume1 - 0.15
setVolume(CalculationResult1)
item "VOLUME + 25%":
const CurrentVolume2 = getDeviceDetail("Current Volume")
const CalculationResult2 = CurrentVolume2 + 0.25
setVolume(CalculationResult2)
item "VOLUME - 25%":
const CurrentVolume3 = getDeviceDetail("Current Volume")
const CalculationResult3 = CurrentVolume3 - 0.25
setVolume(CalculationResult3)
item "OPEN SPOTIFY":
openApp("com.spotify.client")
}
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 diana2459096183
You Might Also Like
Advertisement