Learn how to send video view data from Mux to Amazon Kinesis Data Streams.
Add a new streaming export
Add a new streaming export from your Mux dashboard.
Set up a data stream in Amazon Kinesis
Set up a data stream and IAM role in your AWS account.
Finish setup in Mux
Enable your export in Mux.
Process video view messages
Streaming Exports are only available on Mux Data Media plans.
In order to stream Mux Data video views to Amazon Kinesis Data Streams, you’ll need to set up a data stream in your AWS account. You should use the us-east-1
region when creating the data stream. This guide covers the high-level steps required for setup.
To add a new streaming export, go to Settings > Streaming Exports in your Mux dashboard. From that tab, click New streaming export to open the configuration modal.
Select the environment you want to send views from, and select Amazon Kinesis Data Streams as the service.
You'll need to complete the following setup in your AWS account before you can create a new streaming export in Mux:
us-east-1
region.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"kinesis:ListShards",
"kinesis:PutRecord",
"kinesis:PutRecords"
],
"Resource": [
"arn:aws:kinesis:{region}:{account-id}:stream/{stream-name}"
]
}
]
}
In the configuration modal, provide the data stream ARN and IAM role ARN. Make sure the values you provide match these formats:
arn:aws:kinesis:{region}:{account-id}:stream/{data-stream-name}
arn:aws:iam::{account-id}:role/{role-name}
Click Enable export, and your streaming export will be activated immediately. We will start streaming views as soon as they're completed.
With your export set up, you can begin consuming incoming messages. For more information on the message format and processing video views, see the main Export raw video view data guide.