This topic describes the Golang engine API for the ApsaraVideo for Media Streaming Linux SDK.
API reference
API | Description |
Creates an | |
Releases the | |
Gets the event handler. | |
Joins a channel. This simplified method omits the | |
Leaves the channel. | |
Checks whether publishing the camera track is enabled. | |
Checks whether publishing the screen sharing stream is enabled. | |
Checks whether publishing the audio track is enabled. | |
Checks whether publishing simulcast for the camera track is enabled. | |
Enables or disables an external video source. | |
Pushes external video frames. This method does not support video resolutions of 2K or higher. | |
Enables or disables publishing from an external audio source. | |
Pushes external raw audio data. | |
Sets the audio profile. | |
Sets the publishing volume of the external audio source. | |
Gets the publishing volume of the external audio source. | |
Sends SEI (Supplemental Enhancement Information). The maximum length is 4,096 bytes. Use this method to transmit small amounts of application data. | |
Enables or disables publishing the secondary stream. | |
Enables or disables publishing the local video stream from the camera. | |
Enables or disables publishing the local audio stream. | |
Enables or disables publishing the screen sharing stream. | |
Stops or resumes subscribing to the audio stream of a specified remote user. Call this method after joining a channel. | |
Stops or resumes subscribing to the video stream of a remote user. Call this method 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 either the high-resolution stream or the low-resolution stream. | |
Mutes or unmutes the local video stream. | |
Mutes or unmutes the local audio stream. | |
Sets the user role. | |
Sets the default video stream type to subscribe to. | |
After joining a channel as an audience member, if all broadcasters in the channel stop publishing streams, the SDK immediately triggers the | |
After joining a channel, if no other users join within a specified period, the SDK triggers the | |
Sets custom configurations by using a JSON-formatted string, such as enabling or disabling the data channel. | |
Locally generates the token for | |
Sends a message through the data channel. | |
Reports an error from the engine. | |
Reports a warning from the engine. | |
Reports the result of joining a channel. | |
Reports data received from a remote user through the data channel. | |
Reports the result of leaving a channel. | |
Occurs when a remote user joins the channel in communication mode, or when a broadcaster joins the channel in interactive mode. | |
Occurs when a remote user leaves the channel in communication mode, or when a broadcaster leaves the channel in interactive mode. | |
Occurs when an audio or video track from a remote user becomes available or unavailable. | |
Reports a change in the audio subscription state. | |
Reports a change in the camera stream subscription state. | |
Reports a change in the subscribed stream type (high-resolution stream or low-resolution stream). | |
Reports a change in the screen sharing stream subscription state. | |
Reports a change in the publishing state of the screen sharing stream. | |
Reports a change in the secondary stream publishing state. | |
Reports a change in the local video publishing state. | |
Reports a change in the local audio publishing state. | |
Provides the raw audio data from each remote user before it is mixed. | |
Provides the mixed audio data of all subscribed remote users. | |
Provides the raw video data from subscribed remote streams. | |
Provides the encoded video data from a remote user before it is decoded. | |
Occurs when an SEI message is received. | |
Occurs when the user role changes. | |
A custom callback for audio archiving that provides AAC-encoded audio from individual streams. | |
A custom callback for audio archiving that provides AAC-encoded audio from the mixed stream. | |
Indicates that the audio buffer is full, which can happen when audio data is pushed too quickly or at a non-uniform rate. | |
Indicates that the video buffer is full, which can happen when video data is pushed too quickly or at a non-uniform rate. |