介面 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 時,才會填入這個欄位。