PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Principle
  • Notes
  • Use in network via Internet
  • Overview
  • Prerequisite
  • Configuration
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
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. Click (or select "Insert .. Control .. Conference control").On the "Creation" pane, in the "Graphic controls" group, expand "Video and capture" and click "Conference".
  2. Display the description window of streams ("Window .. Edit the streams").Display the description window of streams:
    • on the "Window" pane, in the "Edit" group, expand "Other actions" and select "Edit the streams".
    • in the popup menu of the Conference control, select "Edit the window streams".
  3. In this window:
    • Configure the characteristics of the Conference controls: type of outgoing and incoming data, display of the outgoing or incoming video, ...
      Note: These characteristics can also be configured by programming (..Display, ..OutgoingData, ..Identifier and ..IncomingData).
    • Associate (if necessary) the different Conference controls with the corresponding communication streams.
    • Enable the detection of incoming streams (..Detection or "Detection of incoming streams enabled" in the description window of the streams).
  4. By programming:

Notes

  • 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 attempt of stream connection (StreamConnect or ..Address) uses a maximum connection time-out. To find out and/or modify this time-out, use ..Timeout.
Versions 20 and later
Use in network via Internet

Overview

The Conference controls can be used between two computers:
  • in the same local network: no specific configuration is required.
  • via 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 is using the WebRTC technology. This technology requires the use of a STUN server and a TURN server.
These servers must be configured properly.
Notes:
  • 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 it must be opened in entry and exit. This port must be "linked" the the computer that performs the video-conference.
    • Depending on the firewall configuration, you may also have to open the UDP 3478 port: This port is used by the TURN server for the relay of 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", "myturnserver.org", "user87", "Secret_87")
    Open(WIN_InternetVideoConference)
New in version 20
Use in network via Internet

Overview

The Conference controls can be used between two computers:
  • in the same local network: no specific configuration is required.
  • via 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 is using the WebRTC technology. This technology requires the use of a STUN server and a TURN server.
These servers must be configured properly.
Notes:
  • 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 it must be opened in entry and exit. This port must be "linked" the the computer that performs the video-conference.
    • Depending on the firewall configuration, you may also have to open the UDP 3478 port: This port is used by the TURN server for the relay of 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", "myturnserver.org", "user87", "Secret_87")
    Open(WIN_InternetVideoConference)
Use in network via Internet

Overview

The Conference controls can be used between two computers:
  • in the same local network: no specific configuration is required.
  • via 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 is using the WebRTC technology. This technology requires the use of a STUN server and a TURN server.
These servers must be configured properly.
Notes:
  • 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 it must be opened in entry and exit. This port must be "linked" the the computer that performs the video-conference.
    • Depending on the firewall configuration, you may also have to open the UDP 3478 port: This port is used by the TURN server for the relay of 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", "myturnserver.org", "user87", "Secret_87")
    Open(WIN_InternetVideoConference)
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 required version
  • Version 9
Comments
Click [Add] to post a comment