Amazon Kinesis Video Streams examples
The following code examples demonstrate how to work with the Kinesis Video Streams API:
Examples: Sending data to Kinesis Video Streams
-
Example: Kinesis Video Streams producer SDK GStreamer Plugin - kvssink: Shows how to build the Kinesis Video Streams producer SDK to use as a GStreamer destination.
-
Run the GStreamer element in a Docker container: Shows how to use a pre-built Docker image for sending Real-Time Streaming Protocol (RTSP) video from an IP camera to Kinesis Video Streams.
-
Example: Streaming from an RTSP source: Shows how to build your own Docker image and send RTSP video from an IP camera to Kinesis Video Streams.
-
Example: Sending data to Kinesis Video Streams using the PutMedia API: Shows how to use the Use the Java producer library to send data to Kinesis Video Streams that's already in a container format (MKV) using the PutMedia API.
Examples: Retrieving data from Kinesis Video Streams
-
KinesisVideoExample: Shows how to parse and log video fragments using the Kinesis Video Streams Parser Library.
-
Example: Parsing and rendering Kinesis Video Streams fragments: Shows how to parse and render Kinesis video stream fragments using JCodec
and JFrame .
Examples: Playing back video data
-
Example: Use HLS in HTML and JavaScript: Shows how to retrieve an HLS streaming session for a Kinesis video stream and play it back in a webpage.
Prerequisites
-
In the sample code, you provide credentials by specifying a profile that you set in your AWS credentials profile file, or by providing credentials in the Java system properties of your integrated development environment (IDE). If you haven't already done so, first set up your credentials. For more information, see Set up AWS Credentials and Region for Development.
-
We recommend that you use a Java IDE to view and run the code, such as one of the following: