检查视频是否已打开 - IsVideoOpened
函数简介
检查视频是否已打开。
接口名称
IsVideoOpened
DLL调用
int32_t IsVideoOpened(int64_t instance, int64_t videoHandle)
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| videoHandle | 长整数型 | 视频句柄 |
示例
int64_t instance = CreateCOLAPlugInterFace();
int64_t videoHandle = OpenVideo(instance, "test.mp4");
int32_t isOpened = IsVideoOpened(instance, videoHandle);
if (isOpened == 1) {
printf("视频已打开\n");
} else {
printf("视频未打开\n");
}
DestroyCOLAPlugInterFace(instance);
返回值
- 0: 未打开
- 1: 已打开
