---
title: "VideoSource"
description: "表示 Shopline 托管视频的来源。  只有状态字段为 `READY` 的视频才有来源。"
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-source'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/video-source.md'
---
# VideoSource

表示 Shopline 托管视频的来源。

只有状态字段为 `READY` 的视频才有来源。

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

## Type Signature

`VideoSource`

## Fields

* `format`

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

  视频源的文件格式扩展名

* `height`

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

  视频源的高度

* `url`

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

  视频源的 URL

* `width`

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

  视频源的宽度

## Schema Definition

```graphql
type VideoSource { 
	format: String
	height: Int
	url: String
	width: Int 
}
```

## Field from

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

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

## 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)。

