---
title: "Video"
description: "代表 Shopline 托管的视频"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/video'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/video.md'
---
# Video

代表 Shopline 托管的视频

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Video`

## Fields

* `alt`

  [String](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/string.md)

  分享媒体性质或内容的单词或短语

* `createdAt`

  [Date!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  创建文件时的日期和时间（ISO 8601 格式）

* `duration`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/int.md)

  视频的持续时间（以毫秒为单位）。如果视频状态不是 READY，则返回 null

* `id`

  [ID!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/id.md)

  全局唯一的ID

* `mediaContentType`

  [MediaContentType!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/enums/media-content-type.md)

  媒体内容类型

* `originalSource`

  [VideoSource](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/video-source.md)

  视频的原始来源。如果视频状态不为 REDAY，则返回 null

* `preview`

  [MediaPreviewImage](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/media-preview-image.md)

  媒体的预览图像

* `updatedAt`

  [Date!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  文件上次更新的日期和时间（ISO 8601 格式）

## Schema Definition

```graphql
type Video { 
	alt: String
	createdAt: Date!
	duration: Int
	id: ID!
	mediaContentType: MediaContentType!
	originalSource: VideoSource
	preview: MediaPreviewImage
	updatedAt: Date! 
}
```

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

