VideoDecoder的视频解码接口。
1
decode(inputData: buffer, frameId: int)
参数名
类型
说明
inputData
二进制数据类型
传入视频帧二进制数据。
frameId
int
输入解码前视频帧的帧ID。
无。(默认解码方式为非实时出帧,解码过程中存在缓存帧,Vdec需要在收到码流中的多帧数据后,才开始输出解码结果。)
解码失败,抛出runtime异常。