Follow the documentation to provision the AWS resources required to run this sample, and assign the appropriate permissions to the IAM role: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producersdk-android-prerequisites.html
- Amazon Cognito user pool
- Amazon Cognito identity pool
- You will need all the information from the step above that you have obtained, and paste them into your local copy of awsconfiguration.json. Here's what it should look like when you're done:
{
"Version": "1.0",
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "us-west-2:01234567-89ab-cdef-0123-456789abcdef",
"Region": "us-west-2"
}
}
},
"IdentityManager": {
"Default": {}
},
"CognitoUserPool": {
"Default": {
"AppClientSecret": "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmno",
"AppClientId": "0123456789abcdefghijklmnop",
"PoolId": "us-west-2_qRsTuVwXy",
"Region": "us-west-2"
}
}
}
- Change the region that the app will stream to by editing the
KINESIS_VIDEO_REGION
constant in your local copy of KinesisVideoDemoApp.java
- After signing in, you'll be taken to the Streaming Configuration screen.
- Note: If this is your first time signing in, you'll need to create an account. You can do this by clicking
Create New Account
on the sign-in screen.
- Note: If this is your first time signing in, you'll need to create an account. You can do this by clicking
- Modify these settings, or you can leave everything on the default values if you wish.
- Click the
Start Streaming
button and check out your video on the AWS Console.
- After signing in, you'll be taken to the Streaming Configuration screen.
- Click on the Hamburger icon in the top-left and in the navigation pane that pops up, choose
Stream From Assets
. - Modify the Stream Name if you wish, then click the
Stream Frames
button. - Check out the video on the AWS Console.