TeamTalk 5 .NET DLL Version 5.15A
|
A struct containing the properties of a channel. More...
Public Member Functions | |
void | AddTransmitUser (int nUserID, StreamType uStreamType) |
Helper function for adding a user and BearWare.StreamType to transmitUsers . | |
StreamType | GetTransmitStreamTypes (int nUserID) |
Helper function for getting the BearWare.StreamType a user can transmit by querying transmitUsers . | |
int | GetTransmitUserCount () |
Get the number of users who can currently transmit to the BearWare.ChannelType.CHANNEL_CLASSROOM. | |
void | RemoveTransmitUser (int nUserID, StreamType uStreamType) |
Helper function for removing a BearWare.StreamType for a user in transmitUsers . | |
Public Attributes | |
int | nParentID |
Parent channel ID. 0 means no parent channel, i.e. it's the root channel. | |
int | nChannelID |
The channel's ID. A value from 1 - BearWare.TeamTalkBase.TT_CHANNELID_MAX. | |
string | szName |
Name of the channel. | |
string | szTopic |
Topic of the channel. | |
string | szPassword |
Password to join the channel. When extracted through TeamTalkBase.GetChannel() the password will only be set for users of user-type BearWare.UserType BearWare.UserType.USERTYPE_ADMIN. | |
bool | bPassword |
Whether password is required to join channel. Read-only property. | |
ChannelType | uChannelType |
A bitmask of the type of channel based on BearWare.ChannelType. | |
int | nUserData |
User specific data which will be stored on persistent storage on the server if the channel type is BearWare.ChannelType.CHANNEL_PERMANENT. | |
long | nDiskQuota |
Number of bytes available for file storage. | |
string | szOpPassword |
Password to become channel operator. | |
int | nMaxUsers |
Max number of users in channel. | |
AudioCodec | audiocodec |
The audio codec used by users in the channel. | |
AudioConfig | audiocfg |
The audio configuration which users who join the channel should use. | |
int[] | transmitUsers |
List of users who can transmit in a channel. | |
int[] | transmitUsersQueue |
The users currently queued for voice or media file transmission. | |
int | nTransmitUsersQueueDelayMSec |
Delay for switching to next active voice user in transmitUsersQueue . | |
int | nTimeOutTimerVoiceMSec |
Time out timer for voice stream. The maximum time in miliseconds a user can transmit voice without changing stream ID. | |
int | nTimeOutTimerMediaFileMSec |
Time out timer for media file stream. The maximum time in miliseconds a user can transmit a media file. | |
A struct containing the properties of a channel.
To change the properties of a channel call TeamTalkBase.DoUpdateChannel(). Note that audiocodec cannot be changed if the channel has users.
Definition at line 2593 of file TeamTalk.cs.
void BearWare.Channel.AddTransmitUser | ( | int | nUserID, |
StreamType | uStreamType | ||
) |
Helper function for adding a user and BearWare.StreamType to transmitUsers
.
Definition at line 2719 of file TeamTalk.cs.
StreamType BearWare.Channel.GetTransmitStreamTypes | ( | int | nUserID | ) |
Helper function for getting the BearWare.StreamType a user can transmit by querying transmitUsers
.
Definition at line 2735 of file TeamTalk.cs.
int BearWare.Channel.GetTransmitUserCount | ( | ) |
Get the number of users who can currently transmit to the BearWare.ChannelType.CHANNEL_CLASSROOM.
Definition at line 2746 of file TeamTalk.cs.
void BearWare.Channel.RemoveTransmitUser | ( | int | nUserID, |
StreamType | uStreamType | ||
) |
Helper function for removing a BearWare.StreamType for a user in transmitUsers
.
Definition at line 2757 of file TeamTalk.cs.
int BearWare.Channel.nParentID |
Parent channel ID. 0 means no parent channel, i.e. it's the root channel.
Definition at line 2597 of file TeamTalk.cs.
int BearWare.Channel.nChannelID |
The channel's ID. A value from 1 - BearWare.TeamTalkBase.TT_CHANNELID_MAX.
Definition at line 2600 of file TeamTalk.cs.
string BearWare.Channel.szName |
Name of the channel.
Definition at line 2603 of file TeamTalk.cs.
string BearWare.Channel.szTopic |
Topic of the channel.
Definition at line 2606 of file TeamTalk.cs.
string BearWare.Channel.szPassword |
Password to join the channel. When extracted through TeamTalkBase.GetChannel() the password will only be set for users of user-type BearWare.UserType BearWare.UserType.USERTYPE_ADMIN.
Definition at line 2611 of file TeamTalk.cs.
bool BearWare.Channel.bPassword |
Whether password is required to join channel. Read-only property.
Definition at line 2614 of file TeamTalk.cs.
ChannelType BearWare.Channel.uChannelType |
A bitmask of the type of channel based on BearWare.ChannelType.
Definition at line 2616 of file TeamTalk.cs.
int BearWare.Channel.nUserData |
User specific data which will be stored on persistent storage on the server if the channel type is BearWare.ChannelType.CHANNEL_PERMANENT.
Definition at line 2620 of file TeamTalk.cs.
long BearWare.Channel.nDiskQuota |
Number of bytes available for file storage.
Definition at line 2622 of file TeamTalk.cs.
string BearWare.Channel.szOpPassword |
Password to become channel operator.
Definition at line 2626 of file TeamTalk.cs.
int BearWare.Channel.nMaxUsers |
Max number of users in channel.
Definition at line 2628 of file TeamTalk.cs.
AudioCodec BearWare.Channel.audiocodec |
The audio codec used by users in the channel.
Definition at line 2630 of file TeamTalk.cs.
AudioConfig BearWare.Channel.audiocfg |
The audio configuration which users who join the channel should use.
Definition at line 2633 of file TeamTalk.cs.
int [] BearWare.Channel.transmitUsers |
List of users who can transmit in a channel.
transmitUsers
is a 2-dimensional array which specifies who can transmit to the channel.
If uChannelType
is set to BearWare.ChannelType.CHANNEL_CLASSROOM then only the users in transmitUsers
are allowed to transmit.
In TeamTalk v5.4 and onwards adding a user ID to transmitUsers
will block the user from transmitting if the BearWare.ChannelType is not BearWare.ChannelType.CHANNEL_CLASSROOM. Basically the opposite effect of BearWare.ChannelType.CHANNEL_CLASSROOM.
To specify user ID 46 can transmit voice to a BearWare.ChannelType.CHANNEL_CLASSROOM channel is done by assigning the following:
* transmitUsers[0][0] = 46; * transmitUsers[0][1] = StreamType.STREAMTYPE_VOICE; *
To specify user ID 46 can transmit both voice and video capture to a BearWare.ChannelType.CHANNEL_CLASSROOM channel is done by assigning the following:
* transmitUsers[0][0] = 46; * transmitUsers[0][1] = StreamType.STREAMTYPE_VOICE | StreamType.STREAMTYPE_VIDEOCAPTURE; *
The transmission list is terminated by assigning user ID 0 to the end of the list, i.e.:
* transmitUsers[0][0] = 0; * transmitUsers[0][1] = StreamType.STREAMTYPE_NONE; *
To allow all users of a BearWare.ChannelType.CHANNEL_CLASSROOM channel to transmit a specific BearWare.StreamType is done like this:
* transmitUsers[0][0] = TeamTalkBase.TT_CLASSROOM_FREEFORALL; * transmitUsers[0][1] = StreamType.STREAMTYPE_VOICE; *
Only channel operators are allowed to change the users who are allowed to transmit data to a channel. Call TeamTalkBase.DoUpdateChannel() to update the list of users who are allowed to transmit data to the channel.
Definition at line 2690 of file TeamTalk.cs.
int [] BearWare.Channel.transmitUsersQueue |
The users currently queued for voice or media file transmission.
This property only applied with channel is configured with BearWare.ChannelType.CHANNEL_SOLO_TRANSMIT. Read-only property.
Definition at line 2696 of file TeamTalk.cs.
int BearWare.Channel.nTransmitUsersQueueDelayMSec |
Delay for switching to next active voice user in transmitUsersQueue
.
In channels of type BearWare.ChannelType.CHANNEL_SOLO_TRANSMIT only one user can transmit voice. When user has stopped transmitting this value specifies the delay before switching to next user in transmitUsersQueue
. Default value is 500 msec.
Definition at line 2705 of file TeamTalk.cs.
int BearWare.Channel.nTimeOutTimerVoiceMSec |
Time out timer for voice stream. The maximum time in miliseconds a user can transmit voice without changing stream ID.
Definition at line 2710 of file TeamTalk.cs.
int BearWare.Channel.nTimeOutTimerMediaFileMSec |
Time out timer for media file stream. The maximum time in miliseconds a user can transmit a media file.
Definition at line 2715 of file TeamTalk.cs.