AWS javascript SDK not returning Playback URL or Stream Key

0

I'm using expo/react native and the AWS Javascript V3 sdk no matter what i only return the metadata parameter of the command output and channel and streamkey are always undefined. Which i need to be able to generate channels for users.

The documentation for the createChannelCommand is here

And you see its supposed to return a response with the channel, streamkey, and metadata properties. However no matter what I'm returned undefined for for both channel and streamkey. I have verified they have been created however.

Amazon Q said to add a requestStreamingDetails:true property but that doesnt work.

GPT suggested that i may not have the correct IAM permissions, but i have IVS full access permissions.

I have scoured the internet for a solution or a reason for hours and I cant seem to find anyone with this issue so any helpful direction would be greatly appreciated.

Here is the response: response from aws

Here is my code: my code

  • The await on lines 31-32 are unnecessary. The response is already received by the await on line 26, and those properties are objects, not promises.

  • Is this intended to run in a browser? If so, including your credentials is a security concern. Refer to the documentation for the correct configuration to use the AWS SDK for JavaScript in a browser environment or consider deploying a backend/serverless API to perform the necessary operations.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠