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