RTSPConnection.pollUsec
gstrtsp.types.RTSPResult pollUsec(gstrtsp.types.RTSPEvent events, out gstrtsp.types.RTSPEvent revents, long timeout)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 0, in which case this function might block forever.
This function can be cancelled with [gstrtsp.rtspconnection.RTSPConnection.flush].
Parameters
events | a bitmask of #GstRTSPEvent flags to check |
revents | location for result flags |
timeout | a timeout in microseconds |
Returns
#GST_RTSP_OK on success.