MediaContent 接口

表示与广告相关联的媒体内容信息。
属性
aspectRatio
媒体内容的宽高比,以宽度除以高度表示。
currentTime?
视频的当前时间(以秒为单位),从视频开始时算起。
duration?
媒体内容的时长(以秒为单位)。
hasVideoContent
媒体内容是否包含视频。
videoAdInfo?
视频内容配置。

属性


Readonly aspectRatio

aspectRatio: number
媒体内容的宽高比,以宽度除以高度表示。

Optional Readonly currentTime

currentTime?: number
视频的当前时间(以秒为单位),从视频开始播放时算起。

仅当 hasVideoContent 为 true 时,系统才会填充此字段。

Optional Readonly duration

duration?: number
媒体内容的时长(以秒为单位)。

仅当 hasVideoContent 为 true 时,系统才会填充此字段。

Readonly hasVideoContent

hasVideoContent: boolean
媒体内容是否包含视频。

Optional Readonly videoAdInfo

videoAdInfo?: VideoAdInfo
视频内容配置。

此字段仅在 hasVideoContent 为 true 时填充。