The video type can be created with video information, or by inspecting a video file:
From Video Info
/// <summary>/// Create an video feature type./// </summary>/// <paramname="width">Video width.</param>/// <paramname="height">Video height.</param>/// <paramname="frames">Video frame count.</param>MLVideoType (int width,int height,int frames);
INCOMPLETE.
/// <summary>/// Create an video feature type./// </summary>/// <paramname="width">Video width.</param>/// <paramname="height">Video height.</param>/// <paramname="frames">Video frame count.</param>/// <paramname="type">Video frame data type.</param>MLVideoType (int width,int height,int frames, Type type);
INCOMPLETE.
/// <summary>/// Create an video feature type./// </summary>/// <paramname="shape">Video feature shape.</param>/// <paramname="type">Video frame data type.</param>/// <paramname="name">Feature name.</param>MLVideoType (int[] shape, Type type,string name =default);
From a Video File
/// <summary>/// Get the video type for a video file at a given path./// </summary>/// <paramname="path">Video path.</param>/// <returns>Corresponding video type or `null` if file is not a valid video file.</returns>staticMLVideoTypeFromFile (string path);
/// <summary>/// Get the video type for a video clip./// Note that the frame count is merely an estimate based on the duration of the video./// </summary>/// <param name-"clip">Video clip.</param>/// <returns>Corresponding video type.</returns>staticMLVideoTypeFromVideoClip (VideoClip clip);
INCOMPLETE.
From Streaming Assets
/// <summary>/// Get the video type for a video file in the `StreamingAssets` folder./// </summary>/// <paramname="relativePath">Relative path to video file in `StreamingAssets` folder.</param>/// <returns>Corresponding video type or `null` if the file is not a valid video file.</returns>staticTask<MLVideoType> FromStreamingAssets (string relativePath);
INCOMPLETE.
Inspecting the Type
/// <summary>/// Feature name./// </summary>string name { get; }/// <summary>/// Feature data type./// This will typically be a numeric type./// </summary>Type dataType { get; }
Refer to the MLFeatureType class for more information.
Inspecting the Video
The feature type reports information about the video it refers to:
Video Width
/// <summary>/// Video width./// </summary>int width { get; }