Kineses Video Streams with react native - No proper documentation

0

While trying to get the data end point we are getting an error like TypeError: Cannot read property 'apply' of undefined

Please find the code block and versions of the packages used below

const kinesisVideoClient = new KinesisVideoClient({
     region: "ap-south-1",
     credentials: {
          accessKeyId: "*********",
          secretAccessKey: "**********",
     },
    });
    const getDataEndpointCommand = new GetDataEndpointCommand({
      StreamName: "STREAN_NAME",
      APIName: "GET_HLS_STREAMING_SESSION_URL",
    });
    const response = kinesisVideoClient
      .send(getDataEndpointCommand)
      .then((data) => {
        console.log("data--------------", data);
      })
      .catch((error) => {
        console.log("error--------------", error);
      })
      .finally(() => {});
 "dependencies": {
    "@aws-sdk/client-iot": "^3.370.0",
    "@aws-sdk/client-kinesis-video": "^3.329.0",
    "@aws-sdk/client-kinesis-video-archived-media": "^3.431.0",
    "@aws-sdk/client-kinesis-video-signaling": "^3.341.0",
    "amazon-kinesis-video-streams-webrtc": "^2.0.4",
    "events": "^3.3.0",
    "react": "18.2.0",
    "react-native": "0.71.8",
    "react-native-get-random-values": "^1.8.0",
    "react-native-url-polyfill": "^1.3.0",
    "react-native-video": "^5.2.1",
    "react-native-webrtc": "^111.0.1",
    "uuid": "^9.0.0"
  },

node version -- 20.11.0 npm version -- v10.2.4

1 Answer
0

Hi. It's not immediately apparent what's wrong. Someone may eventually answer here, but it may perhaps be worthwhile also posing it as an Issue on the GitHub repo for the SDK: https://github.com/aws/aws-sdk-js-v3/issues

You may also be interested in this sample: https://github.com/aws-samples/amazon-kinesis-video-streams-web-viewer.

profile pictureAWS
EXPERT
Greg_B
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions