

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Akamai 範例
<a name="hls-example-akamai"></a>

此範例說明，如果下游系統是 Akamai 伺服器，如何設定目的地欄位。

假設您想要串流冰壺遊戲，並建立三個輸出：高、中和低位元率。


| 欄位 | Value | 
| --- | --- | 
| HLS settings (HLS 設定) 區段中的 CDN settings (CDN 設定) | HLS akamai 如果您使用 Akamai Token Authentication，請選取此設定。根據來自 Akamai 的指示變更其他 CDN 欄位。HLS basic put 如果您使用摘要身分驗證，請選取此設定。根據來自 Akamai 的指示變更其他 CDN 欄位。 | 
| HLS 群組目的地 A 區段中的 URL  | 例如：**https://p-ep50002.i.akamaientrypoint.net/50002/curling/index**將此 URL 對應到 Akamai 術語：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/hls-example-akamai.html) | 
| HLS 群組目的地 A 區段中的登入資料 | 如果 Akamai 需要已驗證的請求，請輸入 Akamai 已知的使用者名稱和密碼。設定密碼時，請輸入存放在 AWS Systems Manager 參數存放區的密碼名稱；請勿輸入密碼本身。如需詳細資訊，請參閱[AWS Systems Manager 密碼參數的要求](requirements-for-EC2.md)。 | 
| HLS 群組目的地 B 區段中的 URL  | 例如：**https://b-ep50002.i.akamaientrypoint.net/50002-b/curling/index**將此 URL 對應到 Akamai 術語：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/hls-example-akamai.html) | 
| HLS 群組目的地 B 區段中的登入資料 | 輸入其他目的地 URL 的使用者名稱和密碼 (如果適用)。這兩個 URL 的登入資料可能相同，但也可能不同。 | 
| HLS outputs (HLS 輸出) 區段的 Name modifier (名稱修飾詞) |  選擇 **Add output (新增輸出)** 兩次；系統會隨即新增兩行 **Output (輸出)** 至本區段，共計三行輸出。接著，請在每一輸出行中輸入修飾詞：**-high**、**-medium** 和 **-low**。  | 
| 位置區段中每個子目錄的目錄結構和區段   |  請根據來自 Akamai 的指示完成欄位。  | 

完成後，系統將使用下列名稱建立檔案：
+ 主要資訊清單：**index.m3u8**
+ 每個輸出一個子資訊清單：**index-high.m3u8**、**index-medium.m3u8**、**index-low.m3u8**
+ 每個輸出各一個 TS 檔案：
  + `index-high-00001.ts`、`index-high-00002.ts`、`index-high-00003.ts`，依此類推
  + `index-medium-00001.ts`、`index-medium-00002.ts`、`index-medium-00003.ts`，依此類推 
  + `index-low-00001.ts`、`index-low-00002.ts`、` index-low-00003.ts`，依此類推



檔案將發佈到兩個位置：
+ 在名為 **p-ep50002.i.akamaientrypoint.net**的資料夾中的 Akamai 主機上 **50002**
+ 在名為 **b-ep50002.i.akamaientrypoint.net**的資料夾中的主機上 **50002-b**