I working with C# script to control android device media. I have been able to check and set volume as well as send commands to pause, play, skip, etc for media apps like Spotify or YouTube
One thing I have not been able to figure out however is how to get the current time of the media. For example, if Spotify is playing a two-minute song, and it is currently at 1:16, I'd like to get that information. So far, I have not been able to find documentation on how to do this.
Is there a way to get the current time of media that's playing. In addition, is there a way to get the total time of the media?
Thank you