Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] EasyPlayer - a new audio app for Maemo 5

    Reply
    Page 3 of 4 | Prev |   1     2   3   4   | Next
    FarmerF | # 21 | 2010-04-26, 12:30 | Report

    Hi Klaus,

    I would like to see some dbus interaction in easyplayer. Most notably to react on pause signals (from navigation software or headphone deamon). Have been looking around a bit but documentation seems scarce. Could you add this?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    eiraku | # 22 | 2010-05-14, 18:04 | Report

    Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.

    Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    das_schlumpfie | # 23 | 2010-05-15, 00:54 | Report

    Originally Posted by eiraku View Post
    Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.

    Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.
    same is happening here, any solutions?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    config | # 24 | 2010-05-15, 04:31 | Report

    Originally Posted by eiraku View Post
    Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.

    Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.
    Yeah same here... Damn Well awaiting some info on this.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    aspidites | # 25 | 2010-05-15, 05:42 | Report

    Writing a patch right now. The problem is that the config file doesn't work. In theory, creating the file /home/user/MyDocs/.easyplayer/preferences should fix it.

    Will post back with more permanent solution unless OP does.

    Attached a patch that corrects the following:
    • the home directory is no longer hard coded: this means that easy player is no longer broken for anyone who has changed the default user name, or runs as another user (for whatever reason you might do that)
    • default config is now created if the config file doesn't exist (this was sort of already their, but I connected the broken dots)
    patch (also attached):
    Code:
    --- EasyPlayer.py    2010-05-15 01:46:27.000000000 -0500
    +++ EasyPlayer.py.new    2010-05-15 01:46:07.000000000 -0500
    @@ -83,18 +83,24 @@
         # Where to look for audio files / books
         self.base_media_dir = "/home/user/MyDocs/"
     
    -    self.prefs_file = "/home/user/MyDocs/.easyplayer/preferences"
    -    self.pl_dirs_file = "/home/user/MyDocs/.easyplayer/playlistdirs"
    -    self.pl_files_file = "/home/user/MyDocs/.easyplayer/playlistfiles"
    +    home = os.environ["HOME"] # some people change their user name from "user"
    +    self.prefs_file = os.path.join(home, ".easyplayer", "preferences")
    +    self.pl_dirs_file = os.path.join(home, ".easyplayer", "playlistdirs")
    +    self.pl_files_file = os.path.join(home, ".easyplayer", "playlistfiles")
     
         # Try to load the preferences
    -    if os.path.isfile(self.prefs_file):
    -      try:
    -        fd = open(self.prefs_file)
    -        self.prefs = pickle.load(fd) # overwrite default values
    -        fd.close()
    -      except:
    -        if (dbg): print "Can't load preferences"
    +    try:
    +        # doing everything in one function call means we don't have to close
    +        # the file
    +        self.prefs = pickle.load(open(self.prefs_file))
    +    except IOError:
    +        self.init_prefs()
    +        self.save_prefs()
    +        try:
    +            os.mkdir(os.path.join(home, ".easyplayer"))
    +        except OSError:
    +            pass
    +
         self.act_file_id = self.prefs["lastfile"]    
     
         # Look, if the preferences are new enough
    @@ -126,13 +132,11 @@
         # Try to load the playlist 
         try:
           if (dbg): print "Trying to load dirs..."
    -      fd = open(self.pl_dirs_file)     # Load list containing directories
    -      self.pl_dirs = pickle.load(fd)     # overwrite default values
    -      fd.close()
    +      # Load list containing directories
    +      self.pl_dirs = pickle.load(open(self.pl_dirs_file))
           if (dbg): print "Trying to load files..."      
    -      fd = open(self.pl_files_file)     # Load list containng filenames
    -      self.pl_files = pickle.load(fd) # overwrite default values
    -      fd.close()
    +      # Load list containing filenames
    +      self.pl_files = pickle.load(open(self.pl_files_file))
           self.max_files = len(self.pl_files)    
           if (dbg): print "(load) Max Files:",self.max_files        
         except:

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: gz prefs_fix.tar.gz (873 Bytes, 98 views)

    Last edited by aspidites; 2010-05-15 at 06:50.
    The Following User Says Thank You to aspidites For This Useful Post:
    FarmerF

     
    lubabula | # 26 | 2010-05-26, 18:37 | Report

    Excellent player. This is what I use. Any change to make it read memory card when scanning files? I keep my audiobooks there so now I have to move what i want to listen to n900.

    Thanks.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    klausr | # 27 | 2010-08-13, 23:41 | Report

    Originally Posted by eiraku View Post
    Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.

    Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.
    This bug should be fixed in version 0.5-2. Please test! If you discover bugs, please contact me directly via email!

    -Klaus

    Edit | Forward | Quote | Quick Reply | Thanks

     
    klausr | # 28 | 2010-08-13, 23:42 | Report

    This patch is added in version 0.5-2. Please test!

    -Klaus

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mattbutsko | # 29 | 2010-11-17, 02:59 | Report

    This is the greatest media player available for the N900, hands down, then up, then hands down again. What the hell, hands up one more time. My only complaint is a 10% CPU increase when compared to the default player, but python's quicker than Hildon/GTK, so it's worth it.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ArnimS | # 30 | 2011-02-27, 02:22 | Report

    This gui is absolutely great - makes browsing through my media breezy! And i love how it continues with the next track automatically. This is my new audio player. THANKS!

    This still annoys that PA takes so much cpu. If you don't mind, i'll use this frontend for my expermintal low-cpu player. ty

    %25.6 /usr/bin/pulseaudio --system --high-priority
    %16.2 python /opt/easyplayer/EasyPlayer.py

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 4 | Prev |   1     2   3   4   | Next
vBulletin® Version 3.8.8
Normal Logout