This reference details the C++ engine interface for the Linux real-time communication SDK.
API reference
API | Description |
Creates an AliRTCEngineInterface instance. | |
Destroys the AliRTCEngineInterface instance. | |
Gets the event callback handle. | |
Joins a channel. | |
Joins a channel. | |
Leaves the channel. | |
Checks if the local video track (camera) is published. | |
Checks if publishing the local screen track is enabled. | |
Checks if the local audio track is published. | |
Checks if simulcast is enabled for the camera track. | |
Enables or disables an external video source. | |
Pushes an external video frame. Input resolutions of 2K or higher are not supported. | |
Enables or disables publishing from an external audio source. | |
Pushes raw external audio data for publishing. | |
Sets the audio profile. | |
Sets the publishing volume for the external audio source. | |
Gets the publishing volume for the external audio source. | |
Sends a media extension message (SEI). The maximum message size is 4,096 bytes. | |
Enables or disables publishing the secondary stream. | |
Enables or disables publishing the local video stream (camera). | |
Enables or disables publishing the local audio stream. | |
Enables or disables publishing the screen stream. | |
Subscribes to or unsubscribes from a specified remote user's audio stream. Must be called after joining a channel. | |
Subscribes to or unsubscribes from a specified remote user's video stream. Must be called after joining a channel. | |
Sets the video encoding configuration for the camera stream. | |
Sets the video encoding configuration for the screen stream. | |
Sets the subscribed camera stream type to the main stream or substream. | |
Mutes or unmutes the local video stream. | |
Mutes or unmutes the local audio stream. | |
Sets the user role. | |
Sets the default video stream type for remote subscriptions. | |
When enabled, triggers the | |
When enabled, triggers the | |
Sets custom parameters using a JSON string, such as enabling or disabling the data channel. | |
Generates a token on the client side for channel authentication. This bypasses the need for an AppServer. | |
Sends a message through the data channel. | |
Sets the log level. | |
Occurs when the SDK engine reports an error. | |
Occurs when the SDK engine reports a warning. | |
Occurs when the local user joins a channel. | |
Occurs when the local user receives a data channel message from a remote user. | |
Occurs when the local user leaves a channel. | |
Occurs when a remote user joins the channel. In interactive mode, this callback is triggered only when a user with the host role joins. | |
Occurs when a remote user leaves the channel. In interactive mode, this callback is triggered only when a user with the host role leaves. | |
Occurs when the audio subscription state changes. | |
Occurs when the camera stream subscription state changes. | |
Occurs when the subscribed stream type changes (main stream or substream). | |
Occurs when the screen stream subscription state changes. | |
Occurs when the screen stream publishing state changes. | |
Occurs when the secondary stream publishing state changes. | |
Occurs when the video publishing state changes. | |
Occurs when the audio publishing state changes. | |
Provides the audio data of each remote user before audio mixing. | |
Provides the mixed audio data of all subscribed remote users. | |
Provides the decoded video data of a subscribed remote user. | |
Provides the encoded video data of a subscribed remote user before decoding. | |
Occurs when the local user receives a media extension message. | |
Occurs when a snapshot completes successfully. | |
Provides the audio data of each remote user before audio mixing. (Deprecated. Use | |
Occurs when a user role changes. | |
Provides the AAC-transcoded audio data of each individual subscribed stream, used for custom audio archiving. | |
Provides the mixed, AAC-transcoded audio data of all subscribed streams, used for custom audio archiving. |