title: How do I send Video data into Kinesis Video Stream?
body: <p>I have been reading the Kinesis Video Stream <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/KinesisVideo.html" rel="nofollow noreferrer">documentation</a> (Javascript) for a few days now I can't figure out how to send my video? I also read the <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Kinesis.html" rel="nofollow noreferrer">Kinesis</a> documentation plus <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Firehose.html" rel="nofollow noreferrer">firehose</a>, but no luck.</p>
  
  <p>I have already created the stream with <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/KinesisVideo.html#createStream-property" rel="nofollow noreferrer"><code>createStream()</code></a> API.</p>
  
  <h3>Param:</h3>
  
  <pre><code>var params = {
      APIName: "PUT_MEDIA",
      StreamName: streamName
  };
  </code></pre>
  
  <h3>getDataEndpoint():</h3>
  
  <p>In order to write data.</p>
  
  <pre><code>kinesisVideo.getDataEndpoint(params,function(err,data){
      if(err)
        console.log(err,err.stack);
      else{
        console.log(data);
        // How to Send DATA?
      }
  });
  </code></pre>