設定 HTTP 要求類型

所有媒體收集 API 要求的要求內文都必須採用 JSON 格式,因此您應該要在播放器中設定內容要求類型。以 JavaScript 為例,您可以依照以下範例設定 Content-Type 要求標題:

httpRequest.setRequestHeader('Content-Type', 'application/json'); 

本頁內容

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now