I’ll add more to this question shortly, but if someone has a viable example in the meantime, I’d really appreciate it.
Objective:
Given an id for the type song, and specifying the TimeInterval startTime and TimeInterval endTime, I need help implementing a method that finds the song by id. Then sets the queue to be [theSong] where the play head begins the song at startTime and ends the song at endTime.
I’ve attempted this many times following the types expected in the Apple docs. (Will post code soon (I’m away from my computer and can’t stop trying to solve this problem)
I was able to to set the Queue with the song I want, and the startTime does seek the track to the desire start time, however the song will only play for what seems like a millisecond (logging player state changes).
For example
startTime: 20.0 * 1000
endTime: 30.0 * 1000
(Oddly I need to multiple those numbers by 1000 even thought the docs state the unit is seconds)
In AppleMusic
The song is queued up at 20 seconds, and plays for about a millisecond. Then in Apple Music, I can hit play (in app) and the song plays again for a millisecond.
Weirder:
Ok, let’s make the end time longer.. no change
Make it way longer.. no change
Omit the endTime… no change.