POST api/LiveBroadcostVideo/ImportVideos

批量导入视频

Request Information

URI Parameters

None.

Body Parameters

Collection of LiveBroadcostVideoResultDto
NameDescriptionTypeAdditional information
VideoId

视频id

integer

None.

EntityId

关联信息id

integer

None.

EntityTitle

关联信息标题

string

None.

EntityType

导入类别

LiveBroadcostScene

None.

UserId

integer

None.

X

decimal number

None.

Y

decimal number

None.

CoverFilePath

视频封面

string

None.

VideoFilePath

视频地址

string

None.

VideoDuration

视频时长

decimal number

None.

Width

视频宽度

integer

None.

High

视频高度

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<ArrayOfLiveBroadcostVideoResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.LiveBroadcost">
  <LiveBroadcostVideoResultDto>
    <CoverFilePath>sample string 7</CoverFilePath>
    <EntityId>2</EntityId>
    <EntityTitle>sample string 3</EntityTitle>
    <EntityType>Custom</EntityType>
    <High>11</High>
    <UserId>4</UserId>
    <VideoDuration>9</VideoDuration>
    <VideoFilePath>sample string 8</VideoFilePath>
    <VideoId>1</VideoId>
    <Width>10</Width>
    <X>5.1</X>
    <Y>6.1</Y>
  </LiveBroadcostVideoResultDto>
  <LiveBroadcostVideoResultDto>
    <CoverFilePath>sample string 7</CoverFilePath>
    <EntityId>2</EntityId>
    <EntityTitle>sample string 3</EntityTitle>
    <EntityType>Custom</EntityType>
    <High>11</High>
    <UserId>4</UserId>
    <VideoDuration>9</VideoDuration>
    <VideoFilePath>sample string 8</VideoFilePath>
    <VideoId>1</VideoId>
    <Width>10</Width>
    <X>5.1</X>
    <Y>6.1</Y>
  </LiveBroadcostVideoResultDto>
</ArrayOfLiveBroadcostVideoResultDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IEnumerable`1'.

Response Information

Resource Description

批量导入视频

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />