I'm using iOS 17.1.
Sometimes I fall asleep while playing a TV show on my iPhone phone and then wake up to the loudest part hours later because the next few episodes autoplay.
Being awake sucks.
If you remember before you start watching, you could use the Timer app to set a sleep timer to stop the app from playing sound or video, and select “Stop Playing” instead of an alarm. But we often forget to set this.
So I want the audio to stop at a set time of the night and ideally the video to stop too. Example: 11:59 PM
I was trying to do this using automation in the Shortcuts app. You can see how to open apps automatically. I can't see a way to automatically kill the app.
Another option is to use a timer set to 'Stop Playing' instead of an alarm sound, which automatically starts the timer for one minute at 11:59. But I can't see a way to select the End Timer action in the shortcut.
I think an alternative approach would be to use screen time, but I really don't want to use it. I prefer to use automation.
What instructions or code do I need for the shortcut?