Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: RESUME and SAVERESUME commands

  1. #1
    Constant Bitrate toyotatyrant's Avatar
    Join Date
    Aug 2007
    Location
    Hampton Roads VA
    Posts
    148

    RESUME and SAVERESUME commands

    I've been reading through the RR command list, and I see the SAVERESUME and RESUME commands. I am curious and interested. Other than in the rr config how, if possible, would these commands be implemented in a skin? and are there any examples?
    ATTENTION FELLOW CAR PC ENTHUSIASTS, POWER ACOUSTIC = CAR PC KRYPTONITE!!!! AVOID AT ALL COSTS!!!!

    To my adoring fans, No my Toyota's gas pedal didn't get stuck! Instead I saw you crossing the street and decided to floor it! Unfortunately, I MISSED!!!

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Quote Originally Posted by toyotatyrant View Post
    I've been reading through the RR command list, and I see the SAVERESUME and RESUME commands. I am curious and interested. Other than in the rr config how, if possible, would these commands be implemented in a skin? and are there any examples?
    RESUME is NOT related to SAVERESUME -- all RESUME does is resume playback state of a paused song (as opposed to alternating the play/pause state as the PLAY command does by default).

    While you should never really need to use it with standard features, there are numerous uses for SAVERESUME. For instance if you create a screen which you want no music/radio playing (cause you'll have something with sound in it), then you can call SAVERESUME, close the player and before you leave the screen you can re-open the player and RR will likely resume whatever was playing when you actually leave the screen. This is one situation, but could be more useful for extension plugins and I have even seen people saving the resume info so they can read status from RR from some other application..
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Constant Bitrate toyotatyrant's Avatar
    Join Date
    Aug 2007
    Location
    Hampton Roads VA
    Posts
    148
    Quote Originally Posted by guino View Post
    RESUME is NOT related to SAVERESUME -- all RESUME does is resume playback state of a paused song (as opposed to alternating the play/pause state as the PLAY command does by default).

    While you should never really need to use it with standard features, there are numerous uses for SAVERESUME. For instance if you create a screen which you want no music/radio playing (cause you'll have something with sound in it), then you can call SAVERESUME, close the player and before you leave the screen you can re-open the player and RR will likely resume whatever was playing when you actually leave the screen. This is one situation, but could be more useful for extension plugins and I have even seen people saving the resume info so they can read status from RR from some other application..
    The use of this function kind of flew over my head in the begining, but based on your reply, I have been experimenting with the saveresume command and have found a few sneaky uses for it. Thanks for the insight.
    ATTENTION FELLOW CAR PC ENTHUSIASTS, POWER ACOUSTIC = CAR PC KRYPTONITE!!!! AVOID AT ALL COSTS!!!!

    To my adoring fans, No my Toyota's gas pedal didn't get stuck! Instead I saw you crossing the street and decided to floor it! Unfortunately, I MISSED!!!

  4. #4
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,707
    Blog Entries
    1
    Quote Originally Posted by guino View Post
    For instance if you create a screen which you want no music/radio playing (cause you'll have something with sound in it), then you can call SAVERESUME, close the player and before you leave the screen you can re-open the player and RR will likely resume whatever was playing when you actually leave the screen. This is one situation, but could be more useful for extension plugins and I have even seen people saving the resume info so they can read status from RR from some other application..
    I am also interested in this, but can not seem to figure it out.

    For instance, I have a CNN new feed that I want to stop mp3 playback for when I go to that screen. How do I then resume the audio when I leave that screen? What is the command to start the MP3 audio again? Does this also restore the playlist?
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    If you have a screen where you want the audio to stop on it, the easiest thing is to use "PAUSE" before the "LOAD" command to the screen, and "RESUME" before exiting the screen. If you use the same player (i.e. winamp) in that screen, then you can use SAVERESUME/SAVELIST (to a temp file), rename the resume.ini file to something else, stop playback, load your screen (and whatever you want in the player), then right before using the "EXIT" command, use LOADLIST (to your temp file) and restore your resume.ini file (rename it back).. then when EXIT runs, you *should* get the same effect you get when leaving the video player back to the main menu.. but if you really want to go at it, you should probably not save/load the playlist by checking if you're not in audio mode.

    Still, if you need something specific in this subject, just let me know and I can probably work on something for you.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  6. #6
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,707
    Blog Entries
    1
    Actually, that is exactly how I have been handling it, with that exact "workaround". Just when I saw mention of the saveresume command, I thought there was a better way now incorporated in RR

    Something like a SavePosition(Would pause/stop, save the playlist, position in list, and position of song), RestorePosition (Return to the saved state).

    I have had to do some of it with AutoIt ect.... But now that I am thinking, I could probably toss together a extension dll to handle all this, now that RR keeps track of what the audio source is.....

    This would be handy for any time that you use WA in the skin to play something, then would like to return to where you were. Such as playing a pod cast segment, net radio station ect ect....
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  7. #7
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    53
    its been awhile since i looked at the RRSHoutcast source but i'm managing audio playlist and shoutcast playback within that plugin source. Should you go the extension plugin route i could share the code john.
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  8. #8
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,979
    Quote Originally Posted by JohnWPB View Post
    Something like a SavePosition(Would pause/stop, save the playlist, position in list, and position of song), RestorePosition (Return to the saved state).
    now i'm intrested , but i think something like you say john , but allow for a user path ,

    ie saveposition;$RRpath$NAME.m3u, of course the same for RestorePosition

    maybe this could be a Blue to the rescue here , if not in rr itsself.
    Riderunner / Genesis
    Plugin Breaker in test BassRR Plugin Player, Wifiman_NET
    New Home for Genesis & BassRR :adding to site ,, Hellfyre night
    Bassrr Beta Release :Version 1.3.7
    Movie_info Release :Version 3.1.0
    Wifiman_NET:Version 1.0.0

    Every Future, Needs A Beginning

  9. #9
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    HAHAHA...

    Before I even got to reading the post above, I was wondering if someone was gonna mention such a feature, instead of all that extra non-sence RR code. Two simple cmds, one to save all the current player info to a file which the user specifies the path, or would default to the current skin's path, and the other to just read back in that file and get the ball rolling once again...

    Sorta a toss up between RRExtended and RR... I would lean more towards RR b/c that is something that the skinning engine should provide cmd wise..
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  10. #10
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    makes sense this "SAVERESUME" command, then do what ever you want, then use "RESUME" and your back in the game, i have to do some internal code in some plugins, but this 2 commands can be very handy.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •