aws / aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js
https://aws.amazon.com/developer/language/javascript/
Apache License 2.0
7.59k stars 1.55k forks source link

No documented resource on the Event bridge event triggered when a Chime Media Concatenate Pipeline is complete #4485

Open Demi-ob opened 12 months ago

Demi-ob commented 12 months ago

Describe the issue

What event bridge event is triggered when a pipeline concatenation is complete? I can't find any docs on it. I am working on implementing the AWS chime pipeline concatenation to merge videos/audio recorded from a chime session. What Event bridge event is triggered when the concatenation is completed successfully? I don't see anything in the docs on it

Links

https://docs.aws.amazon.com/chime-sdk/latest/dg/create-concat-pipe.html

Demi-ob commented 12 months ago

Any update here?

ajredniwja commented 11 months ago

Hey @Demi-ob thanks for opening this issue, I am not sure how you are consuming this SDK. The dos you have mentioned is of the chime-sdk.

Usually you would trigger a custom event using the SDK and incorporate the event triggering to your pipeline.

If you are using the chime-sdk in JS which is different from aws-sdk-js, depending on the usage, I would ask the specific questions at https://github.com/aws-samples/amazon-chime-sdk you will also be able to find a couple of examples there.

Demi-ob commented 11 months ago

The docs I referenced is making use of aws-sdk in nodejs to create a MediaConcatenatePipeline on the backend. e.g

const chimeWithMediaPipeline = new AWS.ChimeSDKMediaPipelines({
  region: "us-east-1",
});
const createdMediaPipelineConcat = await chimeWithMediaPipeline
    .createMediaConcatenationPipeline(mediaConcatenatePipelineParams)
    .promise();

Everything else works fine, however there is no documentation anywhere on the Event Bridge event that gets triggered when a MediaCapturePipeline is completed (or any state change). Therefore I have no way to know that a MediaCapturePipeline is complete so I can update the record state in my own database.

For the MediaCapturePipeline (Not to be mistaken with MediaConcatenatePipeline), i.e

const createdMediaPipeline = await chimeWithMediaPipeline
    .createMediaCapturePipeline(mediaCapturePipelineParams)
    .promise();

I have an EventBridge listener that that enqueues an SQS on event or state change i.e "chime:MediaPipelineInProgress" "chime:MediaPipelineDeleted" "chime:MediaPipelinePermanentFailure" Then I have a listener in my backend application on the SQS so I can process the different state changes.

I could find any resource for this on createMediaConcatenationPipeline in any documentation or even in the EventBridge templates

Basically How do i know that a MediaConcatenationPipeline is complete, failed or state change?