Ravnur Media Services events allow applications to react to different events (for example, the job state change event). It is achieved without the need for complicated code - events are pushed through Azure Event Grid to event handlers such as Azure Functions, Azure Logic Apps, or even to your own Webhook.
The Ravnur Media Services event schemas are fully compatible with Azure Media Services and require minimal migration effort from the user side. The only required step is to migrate existing Event Grid topic subscriptions from the AMS Event Grid system topic to the RMS Event Grid topic. No changes to the application code are required.
Ravnur Media Services supports all job-related event types that Azure Media Services supports. The event type names and data are exactly the same. If you have event handlers that process some or all of the job-related AMS events, you don't need to make changes to your application code.
The detailed list of the job-related events, together with schema examples, can be found in the AMS Event Grid schemas documentation
- Go to the resource group created as part of the Ravnur Media Services deployment
- Under the list of resources, go to the “Event Grid Topic” resource
The name of the Event Grid Topic will be unique for your specific deployment, however, it always follows a pattern "eg-topic-<unique-suffix>"
If you are familiar with the subscription creation in the AMS system topic, this process is no different.
- Navigate to the Event Grid Topic
- On the Event Grid topic page, select + Event Subscription
- Fill the details for your event subscription and click Create
You can find more details about Subscription creation and example message endpoint in the official documentation for Event Grid.
Once you set up the subscription for an Event Grid Topic, use the RMS API to create an encoding job. You will able to monitor the job status using events submitted to your message handlers.