TeamTalk 5 .NET DLL  Version 5.3A
Example Applications

The Examples directory of the TeamTalk 5 SDKs contains examples of how to use the TeamTalk library. Ensure to download the TeamTalk 5 SDK for the platform which the example supports.

TeamTalk Client Examples

Java client examples:

.NET client examples:

C++ client examples:

Swift client examples:

TeamTalk Server Examples

Java server examples:

.NET server examples:

C++ server examples:

TeamTalk Java client as console application (jTeamTalk)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • Mac OS X
    • Linux
    • Windows
  • TeamTalk 5 SDK Professional Edition
    • Mac OS X
    • Linux
    • Windows

This sample application is located in the SDK's folder:

  • Client/jTeamTalk

This example is a TeamTalk client application which runs as a console application.

The jTeamTalk example application is a very basic example of how the TeamTalk client works. Here's what it does:

  1. Configure sound devices
  2. Connect to a TeamTalk server
  3. Perform logon to TeamTalk server
  4. Join a channel

TeamTalk Java client for Android (TeamTalkAndroid)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • Android
  • TeamTalk 5 SDK Professional Edition
    • Android

This sample application is located in the SDK's folder:

  • Client/TeamTalkAndroid

This is a TeamTalk client example for Android. The easiest way to get this example running is to use Android Studio 2.1 or later.

In Android Studio navigate to the TeamTalkAndroid project located in Client/TeamTalkAndroid.

as_openproject.png

The Android Studio should look like this after opening.

as_ttandroid.png

The TeamTalk 5 JNI library (libTeamTalk5-jni.so) for the example project is located in Client/TeamTalkAndroid/src/main/jniLibs/armeabi-v7a. This is the same file as is located in Library/TeamTalkJNI/libs/armeabi-v7a

The TeamTalk 5 jar file which loads the TeamTalk 5 JNI library is located in Client/TeamTalkAndroid/libs. This is the same file as is located in Library/TeamTalkJNI/libs and the source code for the jar file is located in Library/TeamTalkJNI/src

TeamTalk .NET client example using Windows Forms (TeamTalkApp.NET)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • Windows
  • TeamTalk 5 SDK Professional Edition
    • Windows

This sample application is located in the SDK's folder:

  • Client/TeamTalkApp.NET

This example shows how to connect to a server and join channels where it's possible to stream audio and video data to other users.

To build the example start Visual Studio 2010 or later and open the file TeamTalk.NET.csproj. Once opened notice the configuration says x86 and not "Any CPU" as it usually does in .NET projects. This is because the .NET DLL is compiled to run on x86. On Windows x64 Visual Studio will automatically build applications for x64 execution. In order to run the example the working directory for the debugger must be set to the Library/TeamTalk_DLL directory of the SDK (where the native TeamTalk5 DLL is located). This is done in the project settings as shown in the picture below:

netdebug.png
Debugging .NET example

Now build the example and run the application.

Before connecting to a server press "File -> Preferences" to set up your audio and video devices. Once this is done press "File -> Connect" and connect to a TeamTalk server. To join a channel right-click it in the tree view and click "Join Channel". Below is shown an example of the .NET example in use.

netexample.png
TeamTalk .NET example

Before building your own .NET application ensure to read the section TeamTalk SDK Contents for .NET.

TeamTalk .NET Server Activity Logger Example (ttserverlog.net)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • Windows
  • TeamTalk 5 SDK Professional Edition
    • Windows

This sample application is located in the SDK's folder:

  • Client/ttserverlog.net

This is a simple console application which stores all audio sent to the server to a specific directory on disk. It also displays all user text chat sessions, file uploads, etc. This example gives a good idea of how events are processed in TeamTalk when using the pool mechanism instead of having events posted to a Windows Forms application.

TeamTalk Qt Client Example (qtTeamTalk)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • Mac OS X
    • Linux
    • Windows
  • TeamTalk 5 SDK Professional Edition
    • Mac OS X
    • Linux
    • Windows

This sample application is located in the SDK's folder:

  • Client/qtTeamTalk

This guide explains how to build the TeamTalk Qt client example using Qt Creator and the Qt SDK for Windows 32-bit MinGW. The Qt SDK can be downloaded from qt.io and the Qt SDK includes Qt Creator.

Once installed start Qt Creator and open the project file: Client/qtTeamTalk/teamtalk5.pro or Client/qtTeamTalk/teamtalk5pro.pro for the Professional Edition of the SDK.

Qt Creator will now ask to configure the project:

qtcreator_conf.png
Configure Qt Project

Press Configure Project and the TeamTalk project will now be opened:

qtcreator_opened.png
Opened Qt Project

Now click the hammer icon in the bottom left of the toolbar to build the project and wait for the build process to complete. Once completed click the Projects icon in the left toolbar and then the Run tab. Specify the Working directory to point to the location of the C-API DLL file:

qtcreator_run.png
Run Qt Project

Finally press the play icon in the left toolbar to run the application.

TeamTalk C++ Server Activity Logger Example (ttserverlog)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • Mac OS X
    • Linux
    • Windows
  • TeamTalk 5 SDK Professional Edition
    • Mac OS X
    • Linux
    • Windows

This sample application is located in folder:

  • Client/ttserverlog

This is a simple console application which stores all audio sent to the server to a specific directory on disk. It also displays all user text chat sessions, file uploads, etc. This example gives a good idea of how events are processed in TeamTalk when using TT_InitTeamTalkPoll() and events are not posted to a window handle.

TeamTalk for iOS (iTeamTalk)

This sample application applies to the following plaforms:

  • TeamTalk 5 SDK Standard Edition
    • iOS
  • TeamTalk 5 SDK Professional Edition
    • iOS

This sample application is located in folder:

  • Client/iTeamTalk

This is the TeamTalk 5 client application which can also be found in the App Store. Open the project in Xcode.

TeamTalk Java Server Example (jTeamTalkServer)

This sample applies to the following plaforms:

  • TeamTalk 5 SDK Professional Edition
    • Mac OS X
    • Linux
    • Windows

This sample application is located in folder:

  • Server/jTeamTalkServer

This sample application shows how to run a TeamTalk server which authenticates users and is able to log client events on the server.

Note that it's only possible to use the TeamTalk Server API in TeamTalk Professional edition.

TeamTalk .NET Server Example (TeamTalkServer.NET)

This sample applies to the following plaforms:

  • TeamTalk 5 SDK Professional Edition
    • Windows

This sample application is located in folder:

  • Server/TeamTalkServer.NET

This sample application shows how to run a TeamTalk server which authenticates users and is able to log client events on the server.

Note that it's only possible to use the TeamTalk Server API in TeamTalk Professional edition.

TeamTalk C++ Server Example (TeamTalkServer)

  • TeamTalk 5 SDK Professional Edition
    • Mac OS X
    • Linux
    • Windows

This sample application is located in folder:

  • Server/TeamTalkServer

This is an example of programming a TeamTalk server. To use the TeamTalk server API include the file TeamTalkSrv.h instead of TeamTalk.h in your project.

Note that it's only possible to use the TeamTalk Server API in TeamTalk Professional edition.