更新时间:2026-06-24 GMT+08:00
分享

视频配置回调

方法名称

void onProfileList(ProfileList profileList)

功能描述

视频配置回调。该方法在主动调用getProfileList()时触发,回调当前的视频画质配置和支持的视频画质配置列表。

参数说明

字段名

类型

说明

profileList

ProfileList

视频配置列表

ProfileList结构

参数名

类型

说明

profileLevel

int

当前的视频配置级别

profiles

List<ProfileInfo>

支持的视频配置列表

ProfileInfo结构

参数名

类型

说明

level

int

视频配置级别(0:自动,1:流畅,2:标清,3:高清)

width

int

画面宽度

height

int

画面高度

fps

int

帧率

bitrate

int[]

码率范围,如 [2000, 4000],表示 bitrate 根据网络情况在 2000~4000 范围内波动

返回值

调用示例

@Override
public void onProfileList(ProfileList profileList) {
     Log.i(TAG, profileList.toString());
}

相关文档