ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Stream functions
  • Disconnecting a stream
  • Procedure for stream detection
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Stops receiving or broadcasting a stream. The connection is closed and dissociated from the stream and from the corresponding Conference controls.
Remark: To stop receiving or broadcasting a stream without dissociating this stream from a Conference control, use StreamStop.
Example
// Stops receiving the stream and dissociates the stream from the associated control
StreamDisconnect(STREAM_MyStream.Value)
Syntax
StreamDisconnect(<Stream identifier>)
<Stream identifier>: Integer
Identifier of the stream to disconnect. This identifier can be found:
  • in the event "Connection request of new stream" associated with the stream.
  • by using the Value property on the stream.
Remarks

Disconnecting a stream

When a stream is disconnected (by the caller or the called), the "End of connection" event is automatically run.

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. 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: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help