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.

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen