跳转到指定时间 - SeekToTime
函数简介
跳转到指定时间。
接口名称
SeekToTime
DLL调用
int32_t SeekToTime(int64_t instance, int64_t videoHandle, double timestamp);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| videoHandle | 长整数型 | 视频句柄 |
| timestamp | 双精度浮点数 | 目标时间戳(秒) |
示例
int32_t result = SeekToTime(instance, videoHandle, 5.5);
if (result == 1) {
printf("跳转到5.5秒成功\n");
}
返回值
整数型:1 成功,0 失败。
