This topic describes the Python engine interfaces for the Real-Time Communication Linux SDK.
API reference
API | Description |
Creates an AliRTCEngineInterface instance. | |
Destroys the AliRTCEngineInterface instance. | |
Gets the event handler. | |
Joins a channel using a simplified method without a nonce or timestamp, ensuring compatibility with other SDKs. | |
Leaves the channel. | |
Checks whether publishing the camera track is enabled. | |
Checks whether publishing the screen track is enabled. | |
Checks whether publishing the audio track is enabled. | |
Checks if simulcast is enabled for the camera track. | |
Enables an external video source. | |
Pushes an external video frame. Video input with a resolution of 2K or higher is not supported. | |
Enables or disables publishing from an external audio source. | |
Pushes external raw audio data for publishing. | |
Sets the audio profile. | |
Sets the publishing volume for the external audio source. | |
Gets the publishing volume of the external audio source. | |
Sends Supplemental Enhancement Information (SEI) messages up to 4 KB to transmit small amounts of application data. | |
Enables or disables publishing the substream. | |
Enables or disables publishing the local camera stream. | |
Enables or disables publishing the local audio stream. | |
Starts publishing the screen sharing stream. | |
Subscribes to or unsubscribes from a specific remote user's audio stream. This method must be called after joining a channel. | |
Subscribes to or unsubscribes from a remote user's video stream. This method must be called after joining a channel. | |
Sets the video encoder configuration for the camera stream. | |
Sets the video encoder configuration for the screen sharing stream. | |
Sets the subscribed video stream type to the main stream or substream. | |
Stops or resumes sending local video data. | |
Stops or resumes sending local audio data. | |
Sets the client role. | |
Sets the default video stream type for remote subscriptions. | |
Configures the SDK to trigger the | |
Sets a period after which the | |
Sets custom configurations by using a JSON-formatted string, such as enabling or disabling the data channel. | |
Generates a token locally to join a channel, bypassing app server authentication. | |
Sends a message through the data channel. | |
Triggered when an error occurs. | |
Triggered when a warning occurs. | |
Reports the result of joining a channel. | |
Triggered when a message is received from a remote user through the data channel. | |
Reports the result of leaving a channel. | |
Triggered when a remote user joins the channel in communication mode or as a broadcaster in interactive mode. | |
Triggered when a remote user leaves the channel in communication mode or as a broadcaster in interactive mode. | |
Triggered when the state of a remote user's audio or video stream changes. | |
Triggered when the audio subscription state changes. | |
Triggered when the camera stream subscription state changes. | |
Triggered when the subscribed stream type (main stream or substream) changes. | |
Triggered when the screen sharing stream subscription state changes. | |
Triggered when the screen sharing publishing state changes. | |
Triggered when the substream publishing state changes. | |
Triggered when the video publishing state changes. | |
Triggered when the audio publishing state changes. | |
Reports the audio data of each remote user before mixing. | |
Reports the mixed audio data of all subscribed remote users. | |
Reports the received remote video data frames. | |
Reports the received encoded remote video data before decoding. | |
Triggered when an SEI message is received. | |
Triggered when the client role changes. | |
Reports separate audio streams transcoded to the AAC format for custom audio archiving. | |
Reports the mixed audio stream transcoded to the AAC format for custom audio archiving. | |
Notifies the application that the SDK buffer is full due to rapid or uneven audio data input. | |
Notifies the application that the SDK buffer is full due to rapid or uneven video data input. |