Search code examples
javascriptnode.jsamazon-web-servicesvideo-streamingamazon-kinesis

Put media into Kinesis Video Streams on Node.js


I'm trying to put a media stream into a Kinesis Video Stream. Since this is not supported within the Javascript SDK yet, I wonder if there is any solution to get this working without a Java workaround, just pure Javascript.

In the Javascript SDK I can get an endpoint für PutMedia: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/KinesisVideo.html - so I wonder why there's a method to get the endpoint but no method to put media via the Javascript SDK.

Any help would be much appreciated, Oliver


Solution

  • Apologies.. There is no direct support for the PutMedia API in JS yet. In the meanwhile, the API is described in the documentation: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_dataplane_PutMedia.html

    You can pre-generate the MKV and issue a POST call directly.