### Takes a field with a video or audio link, and returns the duration of that video or audio resource. That is all.

[

**This is a Community Plugin!** Learn how create your own plugin, or copy and remix existing ones in our documentation

](https://www.datocms.com/docs/plugin-sdk/introduction.md)

## DatoCMS Plugin Video Duration

Takes a field with a video or audio link, and returns the duration of that video or audio resource. That is all.

## Plugin can be configured at the field level, with three options:

| Option | Description |
| --- | --- |
| Media Type | Type of resource. One of 'Audio' or 'Video' |
| Field ID | The ID of the field that contains a link to the resouce |
| Hide Field | Whether to hide the field in the document |

(Image content)