prominenceai/deepstream-services-library

Send client data to callback function

subzeromot opened this issue · 2 comments

In smart_record_tap_start_session_on_user_demand.py how can I send more data to the callback function record_event_listener? I saw client_data, I tried to parse my data to this but it seems not work.

@subzeromot please see the smart_record_tap_start_session_on_ode_occurrence.py for an example of how to work with client_data

The class that is used to define the data is here

how to provide client_data here

record_tap=components.record_tap, start=5, duration=10, client_data=components)

how to access client_data in callback here

components = cast(client_data, POINTER(py_object)).contents.value

thanks, it worked