---
title: Media agent for Roku v4.2.0
source: https://docs.newrelic.com/docs/release-notes/streaming-others-release-notes/streaming-others-agent-26-05-14
---

## New features

-   Added native support for AWS Elemental MediaTailor server-side ad insertion via Roku's RAFX_SSAI `awsemt` adapter
-   Added automatic `VideoAdAction` recording for MediaTailor ad lifecycle events: `AD_BREAK_START`, `AD_REQUEST`, `AD_START`, `AD_QUARTILE`, `AD_END`, `AD_BREAK_END`, and `AD_ERROR`
-   Added `nrEnableMediaTailorTracking(nr, adIface)` to register New Relic listeners on a RAFX_SSAI adapter in one call
-   Added `nrSetMediaTailorAdMetadata(tracker, metadata)` to inject sidecar key/value metadata into `VideoAdAction` events
-   Added `nrSendVideoAdEvent(nr, actionName, attr)` for direct recording of `VideoAdAction` from any tracker
-   Added `MediaTailorTask.brs` reference task and `VideoScene.brs` sample demonstrating the recommended integration pattern

## Update

-   Created `MediaTailorTracker` in the scene thread and passed to the task via a node field for RAFX listener compatibility
-   Initialised session through `RAFX_SSAI.requestStream()`; assigned stitched manifest URL from `getStreamInfo().manifest_url` to the Video node
-   Added Video node `position` field observation in the task event loop for ad-break timing resolution
-   Set MediaTailor support as opt-in; activates only when `nrEnableMediaTailorTracking` is called

## Bug fixes

-   Fixed Google IMA ad lifecycle events (`AD_BREAK_START`, `AD_BREAK_END`, `AD_START`, `AD_END`, `AD_QUARTILE`, `AD_ERROR`) to correctly produce `VideoAdAction` instead of `VideoAction`
