I'm sorry I should have looked at the logs first, or provided you with them in the first place.
Well, I looked, and got the source of the problem -
Match.1 was returning the path along with an unwanted trailing newline from the file that was written using
File.WriteLine. This was because of the file format I chose (not XML).
XBMC doesn't seem to like newlines in media paths.
I have gotten rid of the newline since and now everything is fine
.
Now I can say "Play Last Media" and the last file that I had stopped with the voice command "Stop Playback" would start playing ... surviving XBMC restarts or even reboots
I'm also storing the "Time" of stoppage. I'm now going to try and make it seek to this stored time upon executing "Play Last Media".
Thanks and regards,
Ajith