Sends the configuration information of video and audio streams.
Description
int lv_stream_send_config(int service_id, const lv_stream_send_media_param_s *param);The following table describes the related parameters.
Parameter | Type | Description |
service_id | int | The ID of the request. |
param | const lv_stream_send_media_param_s * | The additional information, such as the audio and video data. |
Sample code
Note
The sample code is provided for reference only. The complete code is contained in the SDK.
lv_video_param_s video_param;
lv_audio_param_s audio_param;
memset(&video_param, 0, sizeof(lv_video_param_s));
memset(&audio_param, 0, sizeof(lv_audio_param_s));
// Obtain the values of the video_param and audio_param parameters.
lv_stream_send_config_param_s config_param = {0};
config_param.audio_param = &audio_param;
config_param.video_param = &video_param;
config_param.bitrate_kbps = 1000;
lv_stream_send_config(param->common.service_id, &config_param);