TeamTalk 4 .NET DLL
Version 4.5A
|
The directory "Client/NET/Examples"
of the SDK contains examples of how to use the TeamTalk 4 .NET DLL.
.NET examples:
The process of building and running the application is described in the following section.
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 2005 or later and open the file TeamTalk.NET.csproj
in the directory "Client/NET/Examples/TeamTalk.NET"
. 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 "Client/.NET"
directory of the SDK. This is done in the project settings as shown in the picture below:
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.
Before building your own .NET application ensure to read the section Client Setup Guide.
The SDK's "Client/NET/Examples/ttserverlog.net"
directory contains 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.