author | ms.author | ms.date | title | ms.localizationpriority |
---|---|---|---|---|
JeremyKelley |
JeremyKe |
09/10/2017 |
Video - OneDrive API |
Medium |
The Video resource groups video-related data items into a single structure.
If a DriveItem has a non-null video facet, the item represents a video file. The properties of the Video resource are populated by extracting metadata from the file.
Here is a JSON representation of the resource
{
"audioBitsPerSample": 16,
"audioChannels": 1,
"audioFormat": "AAC",
"audioSamplesPerSecond": 44100,
"bitrate": 39101896,
"duration": 8053,
"fourCC": "H264",
"frameRate": 239.877,
"height": 1280,
"width": 720
}
Property name | Type | Description |
---|---|---|
audioBitsPerSample | Int32 | Number of audio bits per sample. |
audioChannels | Int32 | Number of audio channels. |
audioFormat | string | Name of the audio format (AAC, MP3, etc.). |
audioSamplesPerSecond | Int32 | Number of audio samples per second. |
bitrate | Int32 | Bit rate of the video in bits per second. |
duration | Int64 | Duration of the file in milliseconds. |
fourCC | string | "Four character code" name of the video format. |
frameRate | double | Frame rate of the video. |
height | Int32 | Height of the video, in pixels. |
width | Int32 | Width of the video, in pixels. |
For more information about the facets on a DriveItem, see DriveItem.