Announcement

Collapse
No announcement yet.

Memory button in AudioPlayer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Memory button in AudioPlayer

    Hello
    I'm a new RoadRunner user and is in the making of a skin that has the functions that I need in my car. One thing I think whould be great is to be able to with a push of a button save which song i'm listening to and even the position in it.

    The reason for this is that I often listen to audio books and sometimes you want to take a break and listen to some music and then later start listen to the audio book again. It's now the problems show up, where in the book was I, was it file 156 or 235??? Then it whould be great to just push a button to recall the position i saved earlier.

    Is this possible to do with just skincommands??

    I don't use the audioplayer with all the database stuff, just the basic audioplayer with winamp.

    Regards
    /HAX

  • #2
    UNTESTED:

    Code:
    To Save position:
    "SAVELIST;MEM1.M3U||SETVARBYCODE;MEM1SONG;TRACKNAME||SETVARBYCODE;MEM1POS;TRACKTIME"
    
    To restore position:
    "STOP||LOADLIST;MEM1.M3U||SELPL||SETLIST;$MEM1SONG$||PLAY||SEEKTO;$MEM1POS$"
    May require some tweaking, but you can also switch the "1" for any other number to make new save/restore buttons
    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."

    Comment


    • #3
      Guino!!! happy to see you around mate.. we kind of missed you!

      Comment


      • #4
        Look's promising, but am I wrong if I guess that this would loose the memory if I restart RoadRunner?? Is it possible to write the variables to a file?

        Thanks
        /HAX

        Comment


        • #5
          very possible, just save the info to your skin.ini. use this code based in guinos code(will save info to skin.ini, and m3u file in your skin folder.
          Code:
          "SAVELIST;$SKINPATH$MEM1.M3U||SETVARBYCODE;MEM1SONG;TRACKNUMBER||SETVARBYCODE;MEM1POS;CURRENTTRACKTIME||SAVETOSKIN;MEM1SONG;$MEM1SONG$||SAVETOSKIN;MEM1POS;$MEM1POS"
          Code:
          "STOP||MUTE||LOADLIST;$SKINPATH$MEM1.M3U||SELPL||SETLIST;$MEM1SONG$||PLAY||SEEKTO;$MEM1POS$||MUTE"
          BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
          RRTube ==> [View/Download Youtube Videos]
          WifiMan ==> [Wifi Manager]
          RRec ==> [Audio Capture]

          If You Want To Be Given Everything, Give Everything Up ...
          Bird York -- In The Deep --

          Comment


          • #6
            Perfect, will try it later!!

            /HAX

            Comment

            Working...
            X