This document provides the engine interface reference for the Real-Time Communication SDK for Java on Linux.
Contents
API | Description |
Creates an AliRTCLinuxEngine instance. | |
Destroys the AliRTCLinuxEngine instance. | |
Simulates an app server to generate a local token with one or more parameters. | |
Simulates an app server to generate a local token with a single parameter. This API is deprecated. We recommend using | |
For content moderation scenarios, sets the callback interval for video frames. The default interval is one frame per second. | |
Joins a channel. | |
Joins a channel. | |
Leaves the channel. | |
Checks whether publishing the camera stream is enabled. | |
Checks whether publishing the screen share stream is enabled. | |
Checks whether publishing the audio stream is enabled. | |
Checks whether publishing simulcast streams for the camera is enabled. | |
Enables an external video source. | |
Pushes an external video frame. | |
Enables or disables publishing from an external audio source. | |
Pushes raw external audio data for publishing. | |
Sets the publishing volume of the external audio source. | |
Gets the publishing volume of the external audio source. | |
Sends Real-Time Transport Protocol (RTP) media extension messages. | |
Enables or disables publishing the secondary video stream. | |
Enables or disables publishing the local video (camera) stream. | |
Enables or disables publishing the local audio stream. | |
Starts publishing the screen share stream. | |
Stops or resumes subscribing to a specified remote user's audio stream. Call this method after joining a channel. | |
Stops or resumes subscribing to a specified remote user's video stream. Call this method after joining a channel. | |
Sets the video encoder configuration for the camera stream. | |
Sets the video encoder configuration for the screen share stream. | |
Sets the subscribed camera stream type to the high-quality stream or the low-quality stream. | |
Stops or resumes sending local video data. | |
Stops or resumes sending local audio data. | |
Sets the user role. | |
Configures custom settings using a JSON-formatted string, such as enabling or disabling the | |
Sends data through the | |
Sets the audio profile. | |
Sets the default video stream type for subscriptions. | |
After joining a channel, waits for a specified period. If no other users join, the | |
After joining a channel as an audience member, if all broadcasters leave the channel, the engine immediately triggers the | |
Gets the current process. | |
Gets the data input stream for inter-process communication (IPC). | |
Gets the socket endpoint for creating an inter-process communication connection. | |
Gets the data output stream for IPC. | |
Occurs when an engine error occurs. | |
Occurs when an engine warning occurs. | |
Occurs when the join channel operation completes. | |
Occurs when the leave channel operation completes. | |
Occurs when a remote user (in communication mode) or a broadcaster (in interactive mode) joins the channel. | |
Occurs when a remote user (in communication mode) or a broadcaster (in interactive mode) leaves the channel. | |
Occurs when a remote user's media stream becomes available or unavailable. | |
Occurs when the subscription state of a camera stream changes. | |
Occurs when the subscribed stream type (high-quality or low-quality) changes. | |
Occurs when the subscription state of a screen share stream changes. | |
Occurs when the publishing state of a screen share stream changes. | |
Occurs when the publishing state of the secondary video stream changes. | |
Occurs when the video publishing state changes. | |
Occurs when the audio publishing state changes. | |
Occurs when an audio frame is received from a subscribed remote user. | |
Occurs when the mixed audio frame from all subscribed remote users is received. | |
For custom audio archiving, this callback reports individual audio streams after they are transcoded to the Advanced Audio Coding (AAC) format. | |
For custom audio archiving, this callback reports the mixed audio stream after it is transcoded to the AAC format. | |
Occurs when a decoded video frame is received from a remote user. | |
Occurs when raw, encoded data is received from a subscribed remote video stream. | |
Occurs when a media extension message is received. | |
Occurs when a snapshot operation completes. | |
Occurs when the audio data of each remote user is received before audio mixing. | |
Occurs when a user role changes. | |
Occurs when a message is received through the |