Re: [Banshee-List] How does Banshee import songs into GtkTreeView without playing them?



Hi,

Import just add a record in database and in treeview nothing to do with gstreamer.
the playbin.uri is just set when you click play.
We use onyl one playbin and change uri on it.

Olivier Dufour


On Tue, Jun 21, 2011 at 12:28 AM, Phong Cao <phngcv gmail com> wrote:
Hello everybody,

I am currently practicing programming by writing a small music manager in Gtk# and Gstreamer#. I spent the last two weeks reading Banshee's source code trying to figure out how to make my music manager software imports the songs without playing them. Here is what I tried:

1. I just created a playbin with each song, set its state to State.Paused and then get the TagList from the GstMessage of the playbin. 

However, this method is pretty resource-consuming and slow, especially when I tried to import like 1000+ songs (it crashed). 

Therefore, I am just curious to know how the Banshee team imported all the songs without playing them? In other words, do you guys also set the song's state to State.Paused to import them, or do you use another way?

Thank you for reading my message!! I love using Banshee and it really inspired my small personal software!!

Have a good day!!


Best regards,
Phong Cao

_______________________________________________
banshee-list mailing list
banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]