Adit Panchal
2005-04-04 21:37:45 UTC
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
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