IoT SDK for Linux v1.9.7
Loading...
Searching...
No Matches
IoT SDK for Linux v1.9.7

Methods

Methods of the SDK.

MethodDescription
agora_rtc_get_versionGets the SDK version.
agora_rtc_err_2_strConverts an error code to a string.
agora_rtc_initInitializes the SDK.
agora_rtc_set_log_levelSets the log level.
agora_rtc_create_connectionCreates a connection.
agora_rtc_destroy_connectionDestroys a connection.
agora_rtc_config_logConfigures the log file.
agora_rtc_join_channelJoins an RTC channel corresponding to a specified connection.
agora_rtc_join_channel_with_user_accountJoins an RTC channel corresponding to a specified connection with a user account.
agora_rtc_get_user_info_by_user_accountGets user information by user account.
agora_rtc_get_user_info_by_uidGets user information by UID.
agora_rtc_renew_tokenRenews an RTC token for one or multiple channels corresponding to a connection.
agora_rtc_send_audio_dataSends an audio frame to one or multiple channels corresponding to a connection.
agora_rtc_send_video_dataSends a video frame to one or multiple channels corresponding to a connection.
agora_rtc_mute_local_audioEnables/disables sending local audio data to one or multiple channels corresponding to a connection.
agora_rtc_mute_remote_audioEnables/disables receiving local audio data from one or multiple channels corresponding to a connection.
agora_rtc_mute_local_videoEnables/disables sending local video data to one or multiple channels corresponding to a connection.
agora_rtc_mute_remote_videoEnables/disables receiving local video data from one or multiple channels corresponding to a connection.
agora_rtc_create_data_streamCreates a data stream.
agora_rtc_send_stream_messageSends a data stream message.
agora_rtc_send_media_ctrl_msgSends a message to all channels or a specified channel.
agora_rtc_request_video_key_frameRequests a keyframe from a remote user in one or multiple channels corresponding to a connection.
agora_rtc_set_bwe_paramSets network bandwidth estimation (BWE) parameters.
agora_rtc_send_audio_dataSends an audio frame to one or multiple channels corresponding to a connection.
agora_rtc_send_video_dataSends a video frame to one or multiple channels corresponding to a connection.
agora_rtc_leave_channelLeaves an RTC channel corresponding to a specified connection.
agora_rtc_finiReleases all resources allocated by the SDK.
agora_rtc_login_rtmLogs into RTM.
agora_rtc_logout_rtmLogs out of RTM.
agora_rtc_send_rtm_dataSends an RTM message.
agora_rtc_set_paramsProvides technical preview functionalities or special customizations by configuring the SDK with JSON options.
agora_rtc_send_rdt_msgSends an RDT message.
agora_rtc_get_rdt_status_infoGets information about an RDT channel.

Callbacks

Callbacks of the SDK.

CallbackDescription
on_join_channel_successOccurs when the local user joins an RTC channel successfully.
on_connection_lostOccurs when the local user disconnects from an RTC channel.
on_reconnectingOccurs when the SDK is reconnecting to an RTC channel.
on_rejoin_channel_successOccurs when the local user rejoins an RTC channel successfully.
on_errorOccurs when the SDK reports an error.
on_license_validation_failureOccurs when device license validation fails.
on_user_joinedOccurs when a remote user joins an RTC channel successfully.
on_user_joined_with_user_accountOccurs when a remote user joins an RTC channel with a user account.
on_user_offlineOccurs when a remote user leaves an RTC channel.
on_user_offline_with_user_accountOccurs when a remote user leaves an RTC channel in a user account scenario.
on_user_mute_audioOccurs when a remote user enables/disables sending audio.
on_user_mute_videoOccurs when a remote user enables/disables sending video.
on_stream_messageOccurs when the local user receives a data stream message from a remote user.
on_media_ctrl_msgOccurs when the local user receives a message from a remote user.
on_user_info_updatedOccurs when user information is updated.
on_key_frame_gen_reqOccurs when a remote user requests a keyframe.
on_audio_dataOccurs when receiving the audio frame of a remote user in the channel.
on_video_dataOccurs when receiving the video frame of a remote user in the channel.
on_mixed_audio_dataOccurs when receiving the mixed audio frame of local and remote users. This callback occurs every 20 ms.
on_target_bitrate_changedOccurs when network bandwidth change is detected. Use this callback to adjust your bitrate.
on_token_privilege_will_expireOccurs when the RTC token expires in 30 seconds.
on_rtm_dataOccurs when the local user receives an RTM message.
on_rtm_eventOccurs when an RTM event occurs.
on_rtm_send_data_resultReports the result of the agora_rtc_send_rtm_data method call.
on_rdt_stateOccurs when the connection state of an RDT channel changes.
on_rdt_msgOccurs when the local user receives an RDT message.