cpl_media
A library providing kivy support for playing and recording from various cameras.
- cpl_media.error_callback(e, exc_info=None, threaded=False)
When set, care must be taken to handle errors from secondary threads.
It’s signature is
error_callback(e, exc_info=None, threaded=False)
.
- cpl_media.error_guard(error_func)
A decorator which wraps the function in try…except and calls
error_callback()
if a exception is raised.E.g.:
@error_guard def do_something(): do_something_interesting