TRVCamSender.SessionKey (read-only)

<< Click to display table of contents >>

TRVCamSender.SessionKey (read-only)

Returns the identifier of the current session.

property SessionKey: TRVSessionKey;

Value of this property is changed (incremented by 1) every time when Active becomes True. When Active=False, this property returns 0.

Value of this property is passed as a parameter to events of TRVCamSender. If you perform time consuming operations inside an event, it makes sense to compare values of this property and SessionKey parameter, to make sure that a connection was not closed or reopened.

Value of this property is not transferred to connected TRVCamReceiver or TRVMediaServer, so it is a local property. It is not necessary equal to the SessionKey of the connected TRVCamReceiver (these properties are independent from each other).