Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to start recording c# SDK S3 Bucket Issue #1942

Closed
DhavalKholiya3 opened this issue Jan 17, 2022 · 6 comments
Closed

Not able to start recording c# SDK S3 Bucket Issue #1942

DhavalKholiya3 opened this issue Jan 17, 2022 · 6 comments
Labels
capture-service Issues related to media capture questions, documentations and setup Needs More Information Waiting for more information from builders

Comments

@DhavalKholiya3
Copy link

I am using .net sdk for meetings. I am trying to start recording but following getting exception
I have tried to assigned all the required permissions to user and also created bucket as public but I am still getting following error.

S3BuckertError
Please suggest me possible solutions.

S3 Bucket policy not valid/present for Sink arn:aws:s3:::chimemeeting/df8e8ebe-841a-4ef0-8815-a686630f0706/

following is my code snippets

public async Task start_capture(string title = "")
{
string result = "";
try
{
// set up client
var chimeClient = new AmazonChimeClient(accessKeyId, secretAccessKey, RegionEndpoint.USEast1);

            var meeting = await chimeClient.GetMeetingAsync(new Amazon.Chime.Model.GetMeetingRequest
            {
                MeetingId = title
            });
            
            string meetingRegion = meeting.Meeting.MediaRegion;
            
            string MeetId = meeting.Meeting.MeetingId.Replace("-", "");
           
            string captureS3Destination = "arn:aws:s3:::chimemeeting/" + MeetId;
          
            // start record meeting
            var pipelineInfo = await chimeClient.CreateMediaCapturePipelineAsync(new Amazon.Chime.Model.CreateMediaCapturePipelineRequest
            {
                SourceType = MediaPipelineSourceType.ChimeSdkMeeting,                   
                SourceArn = "arn:aws:chime::" + AWS_AccountId + ":meeting:" + meeting.Meeting.MeetingId,
                SinkType = MediaPipelineSinkType.S3Bucket,
                SinkArn = captureS3Destination
            });
            string recordingpipelineId = pipelineInfo.MediaCapturePipeline.MediaPipelineId;
            result = recordingpipelineId;
           
        }
        catch (Exception ex)
        {
            throw;
        }
        return result;
    }
@DhavalKholiya3 DhavalKholiya3 changed the title Not able to start recording Not able to start recording c# SDK S3 Bucket Issue Jan 17, 2022
@michhyun1
Copy link
Contributor

michhyun1 commented Jan 19, 2022

@DhavalKholiya3 Can you please take a look at this issue? - #1558

Let us know if this helps. thanks.

@ltrung ltrung added the capture-service Issues related to media capture questions, documentations and setup label Jan 20, 2022
@nehtambe
Copy link
Contributor

@DhavalKholiya3
Copy link
Author

Thanks It's resolved now meeting is getting recorded.

Now I am looking on how to generate single from from multiple recorded chunks. I am using .Net sdk for meetings and single JS for meetings.

Can you provide sample code or solution for .NET how to concat this recording files in single file?

@nehtambe
Copy link
Contributor

You can check the section Demo for combining the meeting artifacts in the above shared blog.
Demo for combining the chunks - https://github.com/aws-samples/amazon-chime-media-capture-pipeline-demo
Let us know if this helps.

@DhavalKholiya3
Copy link
Author

I am already referring this demo. But we are using .net SDK in our project not node js.
Currently I am facing following issues.

  1. Currently files are getting recorded in 5 seconds chunk. Is there any setting or parameter available we can set it to record meeting in single file in one go instead of applying solution to combine it?

  2. I am also facing issue of sometime audio getting properly and sometime not getting properly

  3. I am getting video on my screen some time when I try to stop video and start again, then video is not getting display on screen. Sometime its getting displayed and sometime its not getting displayed

@MingcongQi
Copy link

MingcongQi commented Jan 29, 2022

Hi,

  1. Which stream do you want to combine?
  2. Could you give more information about how "not getting properly"?
  3. We are doing a fix for this issue in our backend, will let you know when it is completed

@xuesichao xuesichao added the Needs More Information Waiting for more information from builders label Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
capture-service Issues related to media capture questions, documentations and setup Needs More Information Waiting for more information from builders
Projects
None yet
Development

No branches or pull requests

7 participants