View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#104
Originally Posted by fatalsaint View Post
Everyone say hi to the genius behind the MAFW bindings . Your code rocks dude .


Originally Posted by fatalsaint View Post
Code:
loop = gobject.MainLoop()
gobject.threads_init()
context = loop.get_context()
Yes, right, gobject.threads_init() is absolutely needed to not get some weird gstreamer crashes. It took me a long time to figure this out, too.

Originally Posted by fatalsaint View Post
My biggest gripe ATM is that I kinda wish we could make these backends into modules.. as it is if someone uses MediaBox and pyRadio they will have 4 copies of (almost) identical files. Just seems like a waste of space.
Now that there are two projects using it, it does make sense.

Originally Posted by fatalsaint View Post
But, for now I'd like to figure out your EventEmitter system here so I can connect my own methods to the on_eof and the position_cb methods.. so that I can receive events/signals when a file is done playing and every second to make my new countdown timer more accurate.
If you have any questions about my code, just PM me, or send me a mail.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following User Says Thank You to pycage For This Useful Post: