Provides access to the video-related properties of an item (like a file or folder).
The VideoProperties class has these types of members:
The VideoProperties class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|RetrievePropertiesAsync||Retrieves the specified properties associated with the item.|
|SavePropertiesAsync()||Saves all properties associated with the item.|
|SavePropertiesAsync(IIterable(IKeyValuePair))||Saves the specified properties and values associated with the item.|
The VideoProperties class has these properties.
|Read-only||Gets the sum audio and video bitrate of the video.|
|Read-only||Gets the directors of the video.|
|Read-only||Gets the duration of the video.|
|Read-only||Gets the height of the video.|
|Read-only||Gets the collection of keywords associated with the video.|
|Read-only||Gets the latitude coordinate where the video was shot.|
|Read-only||Gets the longitude coordinate where the video was shot.|
|Read-only||Gets a VideoOrientation value that indicates how the video should be rotated to display it correctly.|
|Read-only||Gets the producers of the video.|
|Read/write||Gets or sets the publisher of the video.|
|Read/write||Gets or sets the rating associated with a video file.|
|Read/write||Gets or sets the subtitle of the video.|
|Read/write||Gets or sets the title of the video.|
|Read-only||Gets the width of the video.|
|Read-only||Gets the script writers for the video.|
|Read/write||Gets or sets the year that the video was shot or released.|
You can access a VideoProperties object asynchronously using the getVideoPropertiesAsync method from the Properties property of an item (like a file of folder), or synchronously using the VideoProperties property if it is available.
You can get a VideoProperties object using any of the following methods and properties:
- StorageItemContentProperties.getVideoPropertiesAsync method, which can be accessed using the Properties property, if it is available.
- FileInformation.videoProperties property
- FolderInformation.videoProperties property
Note Properties that are get or set using a property handler that is defined by another app (like Microsoft Word) may not be accessible. Instead, you can try to get these properties using a file query that is backed by the system index. For more information, see QueryOptions.
For more code samples about accessing properties, see the File access sample.
After GetVideoPropertiesAsync completes,
videoProperties gets a VideoProperties object.
In the example,
file contains a StorageFile that represents the file to retrieve properties for.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8|
- StorageItemContentProperties.getVideoPropertiesAsync method
- Windows.Storage.BulkAccess.FileInformation.videoProperties property
- Windows.Storage.BulkAccess.FolderInformation.videoProperties property
- Windows.Storage.BulkAccess.IStorageItemInformation.VideoProperties property