public class TuSdkMediaVideoComposeSync extends java.lang.Object implements TuSdkMediaEncodecSync
构造器和说明 |
---|
TuSdkMediaVideoComposeSync() |
限定符和类型 | 方法和说明 |
---|---|
TuSdkAudioEncodecSync |
getAudioEncodecSync()
音频编码同步器
|
TuSdkVideoEncodecSync |
getVideoEncodecSync()
视频编码同步器
|
void |
release()
释放同步器
|
void |
syncVideoEncodecDrawFrame(long timeNs,
boolean needCompate,
TuSdkRecordSurface receiver,
TuSdkEncodeSurface encoder)
同步视频输入帧
|
public TuSdkAudioEncodecSync getAudioEncodecSync()
TuSdkMediaEncodecSync
getAudioEncodecSync
在接口中 TuSdkMediaEncodecSync
public TuSdkVideoEncodecSync getVideoEncodecSync()
TuSdkMediaEncodecSync
getVideoEncodecSync
在接口中 TuSdkMediaEncodecSync
public void release()
TuSdkMediaSync
release
在接口中 TuSdkMediaSync
public void syncVideoEncodecDrawFrame(long timeNs, boolean needCompate, TuSdkRecordSurface receiver, TuSdkEncodeSurface encoder)
timeNs
- 当前帧时间戳 [纳秒]needCompate
- 是否为兼容模式receiver
- 视频解码接口encoder
- 视频Surface编码器