PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • StreamAccept: Operations performed
  • Procedure for stream detection
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Associates a request for stream connection with a Conference control. This function must be used in the event "Connection request of new stream" associated with the stream.
Caution: The Conference controls are no longer supported from Windows Vista.
Versions 20 and later
Remark: From version 20, the Conference controls are supported in Windows Vista and later. If you want to use the Conference control with an earlier Windows version:
  1. Open the control description window.
  2. In the "UI" tab, check "Use the TAPI 3.x APIs / Windows XP (for compatibility)".
  3. Validate.
New in version 20
Remark: From version 20, the Conference controls are supported in Windows Vista and later. If you want to use the Conference control with an earlier Windows version:
  1. Open the control description window.
  2. In the "UI" tab, check "Use the TAPI 3.x APIs / Windows XP (for compatibility)".
  3. Validate.
Remark: From version 20, the Conference controls are supported in Windows Vista and later. If you want to use the Conference control with an earlier Windows version:
  1. Open the control description window.
  2. In the "UI" tab, check "Use the TAPI 3.x APIs / Windows XP (for compatibility)".
  3. Validate.
Example
// -- 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
PROCEDURE NewStream(nStreamID)
// Accept the detected stream? CBOX_Auto_Response is a Check Box control
IF CBOX_Auto_Response[1] = True THEN
StreamAccept(nStreamID, MySelf)
ELSE
StreamReject(nStreamID)
END
Syntax
<Result> = StreamAccept(<Connection identifier> , <Conference control>)
<Result>: Boolean
  • True if the stream was associated with the Conference control,
  • False otherwise (invalid identifier, control not found, ...). To find out the error details, use ErrorInfo.
<Connection identifier>: Integer
Identifier of stream connection. This connection will be associated with a Conference control and therefore with the stream to which the control is associated. This identifier is defined in the event "Connection request of new stream" associated with the stream.
<Conference control>: Control name
Name of a Conference control that accepts the connection.
Remarks

StreamAccept: Operations performed

The stream associated with the control is linked to this connection.
The stream establishes links to all the Conference controls linked to it.
The identifier of the connection (and therefore the identifier of the stream) is returned:
  • by ..Value.
  • by using the name of the stream directly.
  • by using the name of the Conference control directly.
If the Conference control is already connected with a stream, the stream is automatically disconnected.

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 ..Detection applied to the stream is set to True.
  • if the option "Detection of active incoming streams" has been checked in the stream description window.
Remark: This event is run in a specific thread of WLanguage. Therefore, it is subject to limitations specific to the threads. See Managing threads with WINDEV for more details.
Related Examples:
The Conference control Unit examples (WINDEV): The Conference control
[ + ] Using the "Conference" control:
- Establish the connection with another user
- Communicate (image and sound) with another user via network
- Close a connection
WD Video Conference Complete examples (WINDEV): WD Video Conference
[ + ] This example uses the Conference control and presents the use of sockets via an instant messaging.
WD Video conference enables you to start a conference (sound + video) with a remote user. Furthermore, with instant messaging, you have the ability to send a file to your contact and to dialog with him.
Component : wd250com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment