IVideoIndexer¶
Namespace: VideoCataloger
Type: Interface
VideoIndexer interface.
Definition¶
Methods¶
| Method | Description |
|---|---|
| CaptureSingleFrame(long, double) | Capture an a frame at the provided time. This function will queue a capture of a given frame if a capture is in progress. |
| CaptureSingleFrameToFile(long, double, string) | Capture an a frame at the provided time to a jpeg file. This function will queue a capture of a given frame if a capture is in progress. |
| AddVideoFile(string, string, string, string) | Add a video file in the queue to be indexed. |
| AddFolder(string, bool, bool) | Scan a folder of videos in the queue to be indexed. |
| StartIndexing() | Start processing the index queue. |
| SetIndexingCallbacks(IVideoIndexerCallbacks) | Set callback interface implementation |
| SetTranscription(long, string) | Set transcription from an srt file. If there already is a transcription for the video it will be replaced. |
| SetTranscription(long, string) | Set transcription from an srt file. If there already is a transcription for the video it will be replaced. |
CaptureSingleFrame¶
Capture an a frame at the provided time. This function will queue a capture of a given frame if a capture is in progress.
Parameters:
| Name | Type | Description |
|---|---|---|
video_id |
Int64 |
Id of video to capture from |
current_video_play_pos |
Double |
Seconds from the start where we want to capture |
CaptureSingleFrameToFile¶
Capture an a frame at the provided time to a jpeg file. This function will queue a capture of a given frame if a capture is in progress.
Parameters:
| Name | Type | Description |
|---|---|---|
video_id |
Int64 |
Id of video to capture from |
current_video_play_pos |
Double |
Seconds from the start where we want to capture |
output_file |
String |
Path to where to save the file. |
AddVideoFile¶
Add a video file in the queue to be indexed.
Parameters:
| Name | Type | Description |
|---|---|---|
path |
String |
Path to the video file to be added. Please use windows paths and remember you need to use // to get a / in a C# string. |
title |
String |
optional title of the video file |
url |
String |
optional url for the video file. |
desc |
String |
option desc for the videoe. |
AddFolder¶
Scan a folder of videos in the queue to be indexed.
Parameters:
| Name | Type | Description |
|---|---|---|
folder |
String |
Path to the folder to scan. |
include_subfolders |
Boolean |
Scan subfolders for videos. |
skip_added |
Boolean |
Ignore videos already in the catalog. |
StartIndexing¶
Start processing the index queue.
SetIndexingCallbacks¶
Set callback interface implementation
Parameters:
| Name | Type | Description |
|---|---|---|
callbacks |
VideoCataloger.IVideoIndexerCallbacks |
Object implementing the IVideoindexerCallbacks interface. Call with null to clear any previously set callbacks |
SetTranscription¶
Set transcription from an srt file. If there already is a transcription for the video it will be replaced.
Parameters:
| Name | Type | Description |
|---|---|---|
video_id |
Int64 |
Id of video that will get the loaded transcript. |
path |
String |
Path to the srt file to be used for transcription. Please use windows paths and remember you need to use // to get a / in a C# string. |
SetTranscription¶
Set transcription from an srt file. If there already is a transcription for the video it will be replaced.
Parameters:
| Name | Type | Description |
|---|---|---|
video_id |
Int64 |
Id of video that will get the loaded transcript. |
path |
String |
Path to the srt file to be used for transcription. Please use windows paths and remember you need to use // to get a / in a C# string. |