使用媒体管道事件 - Amazon Chime SDK

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用媒体管道事件

每种类型的媒体管道会发送生命周期事件,用于触发通知和启动下游工作流程。使用会议管道事件的部分示例包括:

  • 媒体管道完成后处理捕获的媒体。

  • 如果媒体管道出现暂时故障,则通知会议参与者。

  • 如果媒体管道出现永久故障,则停止会议。

您可以将事件发送到亚马逊 EventBridge、亚马逊简单通知服务 (SNS) 和亚马逊简单队列服务 (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 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: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" } }