roku/components/ILOverlay into your app’s components/ directory. Mount it next to the existing Video node and place controls above the graphics. Use a fresh session ID for new content.
setManifest accepts a full media playlist. Keep it in sync with ABR variant changes. Alternatively pass the complete session array using setTimeline. An empty array withdraws the cues. For JSON on Roku OS 14.6+, use parseJson(body, "d") to preserve UNIX milliseconds. On older versions preserve those values explicitly as LongInteger or Double.
The component uses Video.positionInfo for the last rendered frame. With epoch=0, supply setClockAnchor with verified clip ID and the mapping of program time to video position. Update linearBreak from actual break boundaries and seeking during app-controlled seeks. Forward the component’s impression event once through your measurement transport. Call detach before removing the node.
Run sh roku/verify.sh for parser, layout and timing tests. On the target Roku, verify HTTPS artwork, native video geometry, playback position after seeks and impression delivery. Cue fixture · Roku API details and examples
IL ads from the plan
ILAdPlanPlayer reads the IL plan and plays the breaks with the Roku Advertising Framework (RAF), draws the Super, the L and the product, and shows Buy during an iADServer ad. The channel needs bs_libs_required=roku_ads_lib in its manifest. There are two ways to use it. Which to choose
The component requests the plan
In Settings → General → My own player, choose Roku SceneGraph and register in Roku channel ID the channel id: the one fromroAppInfo.GetID() for a published channel, or dev for one installed in developer mode. The component requests GET https://console.interactivelayers.com/il-player/app-plan?project=…&asset=…&app=roku:<id> with a 5-second limit. Start the content when contentReady is true.
- On
204, a404, a network error or a timeout, the content starts without ads. The{ type: "plan_unavailable", status, app, reason }event carries theapp=that was sent: a404is the same answer for an unknown project, video or app, so check the registration first. - With
loadPlan, the iADServer session is the plan’scommerce.session;m.viewIdonly identifies the view in the overlay. - A
version: 2plan expires after 120 s. The component requests it again up to three times, 20, 12 and 5 s beforeexpires_at, and keeps what was already shown, the pacing and the shopping session. It emitsplan_renewed, orplan_renew_failedonce, after the last failed attempt; on expiry,plan_expired, and the content continues. If you get the plan yourself, renew it withreplacePlan. - Consent (
gdpr,gdpr_consent,us_privacy,gpp,gpp_sid) goes as the last argument, because Roku has no standard store. - With
commerce.break_urlin the plan, the component requests the product during an iADServer ad and draws Buy until the ad ends. It takes the identity from the RAF ad’sadIdfield or, when that is missing, from the iADServer impression URL.
The channel plays its breaks
If the channel requests its breaks from the per-break API, your backend creates the playback with"graphics": true and passes GET /v1/vod/playbacks/{id}/plan to the channel. The component neither requests nor plays ads; the channel reports its breaks:
- Report the breaks before they arrive. The component applies
scenes.pacing.cut_clearance_secondsaround each position reported withsetBreaksor, failing that, withbreakStarted. With no reported breaks there is no clearance, and the component can draw over a break the channel did not announce. - Attach with
plan.commerce.session, inattachand inattachPlan. With another key the component emits{ type: "buy_unavailable", reason: "session" }once and shows no Buy during breaks. - Fetch
ad_tag_urlexactly as given, without touchingsidorcorrelator. - If the channel does not call
breakEnded, after 130 seconds the component ends the break, emitsbreak_errorand draws again. Do not rely on this. - During a reported break nothing from IL is drawn except Buy, and the component never touches the
Videonode’s visibility or playback.
Limits and verification
- The Overlay 300×250 is not available on Roku: Google offers neither GPT nor its display SDK for Roku.
- Roku’s ADS 1.1 requirement covers banners that are not Roku’s, such as the Super, the L and the product. Before publishing, declare the SDK to Roku; Roku may reject it.
- The component does not add
msid,an,urlordescription_urlto Google Ad Manager requests. If your agreement with Google requires the channel identity, the project’s tags must already carry it. - The Buy panel during an ad closes when the ad ends.
- A project with server-side insertion gets a plan the component refuses (
reason: "stitched"): the channel plays without IL ads. - Everything was tested in the desktop interpreter, with a network double and a frozen clock. Real RAF, HLS playback, HTTPS download and on-screen composition were not tested on a Roku; neither way of reading the ad identity for Buy has run on a device.