A channel represents a virtual space in which a group of users can interact with one another using Aircore platform services and is identified by a channel ID. You can use a channel to represent a temporary space like a group call, a permanent space like a Slack or Discord channel, or even a 1-1 text chat. A text chat message sent to a particular channel is received by everyone else in the same channel. Similarly, audio published to a channel can be received by everyone in the same channel. Your channel IDs and the associated streams, messages, and user information are visible only to your application and cannot be seen by other users of the Aircore platform.
When you create a channel with a particular channel ID, you must also specify a user ID to uniquely identify the user who is joining the channel. This can be a UUID or a database identifier you use in your app.
No advance provisioning or preparation is required to create and use a channel, and no explicit cleanup is required when you're done with it. Your app can simply leave the channel, and when all participants have left, the channel and its resources will be cleaned up automatically.
Channel parameters are settings that are used to specify configuration options and user permissions for a channel. They are specified when you create a Session Authorization Token to give a user access to a channel. If you are using Publishable API Keys to join channels, you specify these parameters during channel initialization.
For example, consider:
This setting specifies whether the user is allowed to publish audio into the channel. You can use parameters like this one to create different classes of users: some users might be allowed to publish audio, while others are not.
You can find more information about using the Aircore Media SDK for iOS to add real-time voice features to your app in the Flex SDK for iOS Quickstart.