---
title: "VideoSource"
description: "表示 Shopline 托管视频的来源"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/video-source'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/video-source.md'
---
# VideoSource

表示 Shopline 托管视频的来源

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

## Type Signature

`VideoSource`

## Fields

* `format`

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

  视频源的格式

* `height`

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

  视频的高度

* `url`

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

  视频的网址

* `width`

  [Int!](https://developer.shopline.com/zh-hans-cn/docs/storefront-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/storefront-api/common-objects/objects/video.md).sources

  视频的来源

## Error Handling

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

