Prerequisites
Before you set up the Java producer SDK, ensure that you have the following prerequisites:
-
In the sample code, you provide credentials by specifying a profile that you set up in your Amazon credentials profile file. If you haven't already done so, first set up your credentials profile. For more information, see Set up Amazon Credentials and Region for Development
in the Amazon SDK for Java. Note
The Java example uses a
SystemPropertiesCredentialsProviderobject to obtain your credentials. The provider retrieves these credentials from theaws.accessKeyIdandaws.secretKeyJava system properties. You set these system properties in your Java development environment. For information about how to set Java system properties, see the documentation for your particular integrated development environment (IDE). -
Your
NativeLibraryPathmust contain yourKinesisVideoProducerJNIfile, available at https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp. The file name extension for this file depends on your operating system: -
KinesisVideoProducerJNI.so for Linux
-
KinesisVideoProducerJNI.dylib for macOS
-
KinesisVideoProducerJNI.dll for Windows
Note
Pre-built libraries for macOS, Ubuntu, Windows, and Raspbian are available in
src/main/resources/libat https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-java.git. For other environments, compile the C++. -