跳转到视频开头 - SeekToBeginning
函数简介
跳转到视频开头。
接口名称
SeekToBeginning
DLL调用
int32_t SeekToBeginning(int64_t instance, int64_t videoHandle)
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| videoHandle | 长整数型 | 视频句柄 |
示例
int64_t instance = CreateCOLAPlugInterFace();
int64_t videoHandle = OpenVideo(instance, "test.mp4");
int32_t result = SeekToBeginning(instance, videoHandle);
if (result == 1) {
printf("跳转到视频开头成功\n");
} else {
printf("跳转失败\n");
}
CloseVideo(instance, videoHandle);
DestroyCOLAPlugInterFace(instance);
返回值
- 0: 失败
- 1: 成功
