It is primarily used when you need:
(async () => // Get the data endpoint for the GET_MEDIA operation (usually "https://xxxx.kinesisvideo.amazonaws.com") const kvClient = new KinesisVideoClient( region: REGION ); const endpointCmd = new GetDataEndpointCommand( APIName: "GET_MEDIA", StreamARN: STREAM_ARN, ); const DataEndpoint = await kvClient.send(endpointCmd); kvs player downloader
// Create a media client bound to that endpoint const mediaClient = new KinesisVideoMediaClient( region: REGION, endpoint: DataEndpoint, ); It is primarily used when you need: (async
async def download(): endpoint = await get_data_endpoint() url = f"endpoint/getMedia?StreamARN=STREAM_ARN&StartSelector.Type=NOW" headers = sign_request(url) const DataEndpoint = await kvClient.send(endpointCmd)