ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Stream functions
  • StreamAccept: Operations performed
  • Procedure for stream detection
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Associates a stream connection request with a Conference control. This function must be used in the "Connection request of new stream" event associated with the stream.
Example
// -- Evénement "Demande de connexion d'un nouveau flux"
// Procédure de détection d'un nouveau flux
// nIDFlux est une variable de type entier contenant l'identifiant du flux détecté
PROCEDURE NouveauFlux(nIDFlux)
// Accepter le flux détecté ? INT_Reponse_Auto est un champ Interrupteur
IF INT_Reponse_Auto[1] = True THEN
	StreamAccept(nIDFlux, MySelf)
ELSE
	StreamReject(nIDFlux)
END
Syntax
<Result> = StreamAccept(<Connection ID> , <Conference control>)
<Result>: Boolean
  • True if the stream was associated with the Conference control,
  • False otherwise (invalid identifier, control not found, ...). To get more details on the error, use ErrorInfo.
<Connection ID>: 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 "Connection request of new stream" event 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:
  • with the Value property.
  • 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 "Connection request of new stream" event. This event is executed 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.
Note This event is executed in a specific WLanguage Thread. Therefore, it is subject to limitations specific to the threads. For more details on threads, see Managing threads with WINDEV.
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: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help