Line-in restore was not working as it throw an exemption because oCurTrack.title was undefined
Line-in restored only when current state was "playing" (it was restoring it even when paused)
Amazon Music was considered a "musicqueue" instead of "stream" which causes the restoration to play the next track in the queue instead of continue playing Amazon. Note this is still not ideal as only the current Amazon track would be played and nothing else. Looks there is no way to continue playing from Amazon that I know. I also added the Spotify url which is probably in the same issue, but do not have Spotify to validate it.
oCurTrack.title
was undefined