| 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.
| QUOTE (underdog1 @ Feb 8 2004, 04:19 AM) |
Well, I was thinking along those lines....
If XBMP recorded which file it was playing or where it was in the playlist before it played each song, it could start playing that song from the beginning (which wouldn't be TOO bad, but it's not what we're used to)
OR
Like I was saying before, there are usually 2 power sources. One is constantly on, and one is switched with the ignition. So, there would have to be some way for the xbox to run on the constant power, but save its state and shut down when the switched power goes off (like all car stereo decks do). |
I don't realy understand what your saying about constant power. One of the greatest aspects of the XBOX is it's hard drive. Those other car stereos need constanbt power because they use volatile memory. It wouldn't make any sense at all to store the 'hibernate' information in RAM.
This is how I see it working:
-You push the shut off button in XBMP.
-XBMP creates a bookmark file (just like with vids) called 'resume.bkm'
-XBMP then powers off the XBOX
When you turn on your XBOX:
-XBMP boots from BIOS
-Checks bookmark directory for resume.bkm.
-If it is present, execute the bookmark and continue playing the media, then delete resume.bkm.
-If it isn't present, do nothing.
I think it would be pretty easy to do. The bookmark class is already built into XBMP. You would just need to instantiate another instance of the object if media is playing when the shutdown button is pressed. Problem solved.
You wanna know what I wanna see in XBMP? A sleep timer! I would love to be able to listen to ShoutCAST streams as I fell asleep without worrying about my XBOX being on all night.
I wonder if anyone is dtill developing for XBMP? I know new codec are being added continually, but is anyone actively developing it?
probably.