Learn how to send video view data from Mux to Google Cloud Pub/Sub.
Add a new streaming export
Add a new streaming export from your Mux dashboard.
Set up a topic in Google Cloud Pub/Sub
Create a Pub/Sub topic in your Google Cloud account and give Mux permissions to publish to it.
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 publish Mux Data video views to a Pub/Sub topic, you'll need to set up a topic in your Google Cloud account. Mux will write data to the topic as it becomes available. Currently, streaming exports to Google Pub/Sub are available at no charge for customers on a Media plan, but this may change in the future.
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 Google Cloud Pub/Sub as the service.
You'll need to complete the following setup in your Google Cloud account before you can create a new streaming export in Mux:
In the configuration modal, provide the Pub/Sub topic name. This should be the full topic name, including the project ID, and match the format projects/{project-id}/topics/{topic-id}
.
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.