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
  • Overview
  • Principle
  • Remarks
  • Use in network via Internet
  • Overview
  • Prerequisite
  • Configuration
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
To handle the communication streams, WINDEV includes:
This allows two users to communicate between themselves. The image and the voice of the users are broadcasted in real time on each connected computer.
Examples of applications that use the streams:
  • video-conferencing,
  • broadcast of a live press conference, ...
Limitations:
  • The current computer and the connected computers must be equipped with a Web camera and/or a microphone. If one of the computers is not equipped with a Web camera or a microphone, the corresponding image or voice will not be broadcasted.
  • Only the video sequences currently broadcasted by the Web cameras installed on the connected computers can be viewed. No video file can be viewed.
  • Only the sounds currently broadcasted by the microphones installed on the connected computers can be listened to. No sound file can be listened to.
Principle
To handle the communication streams:
  1. Create a window containing on or more Conference controls. On the "Creation" tab, in the "Graphic controls" group, expand "Video and capture" and select "Conference".
  2. Display the description window of streams:
    • on the "Window" tab, in the "Edit" group, expand "Other actions" and select "Edit streams".
    • in the context menu of the Conference control, select "Edit window streams".
  3. In this window:
    • Set the characteristics of the conference control(s): type of data sent and received, display of video sent or received, etc, ...
      Note: These features can also be programmed (properties Display, OutgoingData, Identifier and IncomingData).
    • Associate (if necessary) the different Conference controls with the corresponding communication streams.
    • Enable the detection of incoming streams (Detection property or "Detection of incoming streams enabled" option in the description window of the streams).
  4. Through programming:

Remarks

  • You can temporarily stop receiving or sending a type of data (sound or video) in the communication stream (StreamStop). To resume receiving or sending this type of data in the stream, use StreamPlay.
  • Each connection attempt of a stream (StreamConnect function or Address property) uses a maximum connection timeout. To identify and/or modify this timeout, use the Timeout property.
Use in network via Internet

Overview

The Conference controls can be used between two computers:
  • on the same local network: no specific configuration required.
  • via the Internet. In this case, a specific setting must be performed before using the StreamXXX functions.

Prerequisite

The use of Conference controls in a different private network via Internet uses the WebRTC technology. This technology requires the use of a STUN server and a TURN server.
These servers must be configured properly.
Remarks:
  • Some STUN servers can be free.
  • The TURN servers that can be directly used are charged for.
    The sources of a TURN server can be free. In this case, you must recompile them and deploy the server (a good knowledge of the programming language of the TURN server is required to perform these operations).

Configuration

To use the Conference controls via Internet:
  1. Open the following ports in the firewall:
    • TCP 29172: This port is specific to WINDEV and must be open for input and output.. This port must be "linked" the computer that performs the video-conference.
    • Depending on your firewall settings, you may also need to open UDP port 3478: This port is used by the TURN server to relay audio and video frames..
  2. Configure the STUN and/or TURN servers via StreamConfigure before opening the window containing the Conference controls. For example:
    StreamConfigure("stun.l.google.com:19302", "monserveurturn.org", "user87", "Secret_87")
    Open(FEN_VideoConférenceInternet)
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.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help