RTSPConnection.poll

Wait up to the specified timeout for the connection to become available for at least one of the operations specified in events. When the function returns with #GST_RTSP_OK, revents will contain a bitmask of available operations on conn.

timeout can be null, in which case this function might block forever.

This function can be cancelled with gstrtsp.rtspconnection.RTSPConnection.flush.

Parameters

events gstrtsp.types.RTSPEvent

a bitmask of #GstRTSPEvent flags to check

revents gstrtsp.types.RTSPEvent

location for result flags

timeout glib.time_val.TimeVal

a timeout

Return Value

Type: gstrtsp.types.RTSPResult

#GST_RTSP_OK on success.