Before publishing or subscribing to any stream, ensure that you prepared the development environment and joined the channel. See Integrate the SDK.

Implementation

The audio function of the Agora SDK for macOS is enabled by default. Users can subscribe to and publish audio streams without calling any other API methods once they have joined the channel.

Next Steps

You are in a voice call or broadcast. When the call ends, use the Agora SDK to exit the current channel:

For more functions, you can refer to the following sections: