本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用媒體管道事件
每種類型的媒體管道都會傳送生命週期事件,您可以使用這些事件觸發通知並啟動下游工作流程。使用媒體管線事件的一些範例包括:
在媒體管線完成後處理擷取的媒體。
如果媒體管線暫時失敗,通知會議參與者。
如果媒體管線永久失敗,則停止會議。
您可以將事件發送到 Amazon EventBridge,亞馬遜簡單通知服務(SNS)和 Amazon Simple Queue Service (SQS)。如需詳細資訊,請參閱 Amazon EventBridge 使用者指南中的來自 AWS 服務的事件。
Amazon Chime SDK 會在建立媒體管道時傳送此事件。
範例:事件資料
以下是此事件的範例資料。
{ "version": "0", "id": "5ee6265a-0a40-104e-d8fd-a3b4bdd78483", "detail-type": "Chime Media Pipeline State Change", "source": "aws.chime", "account": "
111122223333
", "time": "2021-07-28T20:20:49Z
", "region": "us-east-1", "resources": [], "detail": { "version": "0", "eventType": "chime:MediaPipelineInProgress", "timestamp":1627503649251
, "meetingId": "1e6bf4f5-f4b5-4917-b8c9-bda45c340706
", "externalMeetingId": "Meeting_Id
", "mediaPipelineId": "e40ee45e-2ed1-408e-9156-f52b8208a491
", "mediaRegion": "ap-southeast-1" } }
刪除媒體管道時,Amazon Chime 開發套件會傳送此事件。
範例:事件資料
以下是此事件的範例資料。
{ "version": "0", "id": "9e11e429-97fd-9532-5670-fac3f7abc05f", "detail-type": "Chime Media Pipeline State Change", "source": "aws.chime", "account": "
365135496707
", "time": "2021-07-28T20:21:50Z
", "region": "us-east-1", "resources": [], "detail": { "version": "0", "eventType": "chime:MediaPipelineDeleted", "timestamp":1627503710485
, "meetingId": "1e6bf4f5-f4b5-4917-b8c9-bda45c340706
", "externalMeetingId": "Meeting_Id
", "mediaPipelineId": "e40ee45e-2ed1-408e-9156-f52b8208a491
", "mediaRegion": "ap-southeast-1" } }
Amazon Chime SDK 會在媒體管道暫時發生故障時傳送此事件。
範例:事件資料
以下是此事件的範例資料。
{ "version": "0", "id": "
abc141e1-fc2e-65e8-5f18-ab5130f1035a
", "detail-type": "Chime Media Pipeline State Change", "source": "aws.chime", "account": "365135496707
", "time": "2021-07-28T21:16:42Z
", "region": "us-east-1", "resources": [], "detail": { "version": "0", "eventType": "chime:MediaPipelineTemporaryFailure", "timestamp":1627507002882
, "meetingId": "7a5434e3-724a-4bbb-9eb6-2fb209dc0706
", "externalMeetingId": "Meeting_Id
", "mediaPipelineId": "ebd62f4e-04a9-426d-bcb0-974c0f266400
", "mediaRegion": "eu-south-1" } }
Amazon Chime SDK 會在媒體管道開始擷取成品時傳送此事件。
範例:事件資料
以下是此事件的範例資料。
{ "version": "0", "id": "
9e11e429-97fd-9532-5670-fac3f7abc05f
", "detail-type": "Chime Media Pipeline State Change", "source": "aws.chime", "account": "365135496707
", "time": "2021-07-28T20:21:50Z
", "region": "us-east-1", "resources": [], "detail": { "version": "0", "eventType": "chime:MediaPipelineInProgress", "timestamp":1627503710485?
, "meetingId": "1e6bf4f5-f4b5-4917-b8c9-bda45c340706
", "externalMeetingId": "Meeting_Id
", "mediaPipelineId": "e40ee45e-2ed1-408e-9156-f52b8208a491
", "mediaRegion": "ap-southeast-1" } }
Amazon Chime SDK 會在媒體管道永久失敗時傳送此事件。
範例:事件資料
以下是此事件的範例資料。
{ "version": "0", "id": "
9e11e429-97fd-9532-5670-fac3f7abc05f
", "detail-type": "Chime Media Pipeline State Change", "source": "aws.chime", "account": "365135496707
", "time": "2021-07-28T20:21:50Z
", "region": "us-east-1", "resources": [], "detail": { "version": "0", "eventType": "chime:MediaPipelinePermanentFailure", "timestamp":1627503710485
, "meetingId": "1e6bf4f5-f4b5-4917-b8c9-bda45c340706
", "externalMeetingId": "Meeting_Id
", "mediaPipelineId": "e40ee45e-2ed1-408e-9156-f52b8208a491
", "mediaRegion": "ap-southeast-1" } }