Media Preview Panel

Adit Panchal <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Since wxPython 2.5.4 includes the wx.media.MediaCtrl, I decided to get 
the media preview panel working for the phonebook entry editor.

I almost have this working except I have one question regarding the 
storage of the ringer information in pubsub. I noticed that the ringers 
that have not been uploaded to the phone are marked with a 'u'. For 
example:  {'name': u'LeChuck.mid'}, and they do not contain origin 
data. In my code, to determine whether a ringer is builtin or not, I 
just check the origin. For these tuples without an origin, can I just 
look for the 'u' with a startswith string test? Where does this 'u' 
come from? Is it appended by pubsub itself, or by ringer.py?

Also, I have this working so that this media control panel shows as 
another panel with a splitter on the ringers tab. This could be handy 
so that someone doesn't have to launch an external program to listen to 
the ringer. I think this could be extended in the future for video 
previews. I wanted to make this similar to the HTML preview window for 
the phonebook tab. Let me know if this is worth pursuing.

Adit



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.