Refuses a request for stream connection. The incoming stream will not be associated with a Conference control. This function must be used in the event "Connection request of new stream" associated with the stream.
// -- Event "Connection request of new stream"
// Procedure used to detect a new stream
// nStreamID is an integer variable containing the identifier of the detected stream
// Accept the detected stream?
IF YesNo("New call received: " + StreamInfo(nStreamID), "Do you accept this call? ") = Yes THEN
<Connection identifier>: Integer
Identifier of stream connection. This identifier is defined in the "Connection request of new stream" event associated with the stream.
Procedure for stream detection
A stream is associated with the event "Connection request of new stream". This event is run when a request to connect to an incoming stream is detected.
This event is run in one of the following cases:
- if the Detection property applied to the stream is set to True.
- if the option "Detection of active incoming streams" has been checked in the stream description window.
: This event is run in a specific thread of WLanguage. Therefore, it is subject to limitations specific to the threads. For more details on threads, see Managing threads with WINDEV
Unit examples (WINDEV): The Conference control
Complete examples (WINDEV): WD Video Conference