| QUOTE (underdog1 @ Feb 5 2004, 08:28 PM) |
Yes, it's strange that nobody has talked about it HERE (unless I missed it).
How do other devices do it? Like the Linux based car mp3 player RioCar (riocar.org). They are reading MP3 files just like XBMP. Do they have to record the state of the player somewhere so that when the power goes off and comes back on it can resume?
What could be different here is that most car audio decks have two sources of power. One is always on, and one is on when the ignition is switched on. Of course the XBox doesn't have this type of power, so that could make it complex.
Perhaps someone out there has some good ideas..... |
I think it can very easily be implemented in XBMP. When you shut off the XBOX, it can write a small binary file that holds the path and file name of the media that is currently playing, along with the seek time. That way, when XBMP boots up, it can look to see if that binary file is present. If so, then resume playing the media.
The only thing is, you would have to always shut off the XBOX through the power off button in XBMP. Then the code could be written into that event procedure. If you just powered off the XBOX with the power button (hard boot), XBMP wouldn't be able to save the state.