[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AS6EHTCVK08TTF3FVD83YQ":3,"skill-same:01M7AS6EHTCVK08TTF3FVD83YQ":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AS6EHTCVK08TTF3FVD83YQ","smart-tv-playback-drm-and-performance",null,"Use when implementing or debugging video on TV: the playback stack (MSE\u002FEME, Shaka Player), formats and the adaptive bitrate ladder (HLS\u002FDASH, codecs, HDR), the QoE metrics that matter, the three-DRM reality (Widevine, PlayReady, FairPlay) and security levels, the hardware reality and the performance and memory techniques that work on constrained devices, the app lifecycle, deep linking, and content feeds and discovery integration.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fsmart-tv-app-development\u002Fskills\u002Fsmart-tv-playback-drm-and-performance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: smart-tv-playback-drm-and-performance\ndescription: \"Use when implementing or debugging video on TV: the playback stack (MSE\u002FEME, Shaka Player), formats and the adaptive bitrate ladder (HLS\u002FDASH, codecs, HDR), the QoE metrics that matter, the three-DRM reality (Widevine, PlayReady, FairPlay) and security levels, the hardware reality and the performance and memory techniques that work on constrained devices, the app lifecycle, deep linking, and content feeds and discovery integration.\"\n---\n\n# Smart TV Apps: Video Playback, DRM, Performance and Memory, and Lifecycle\n\n> **Part 2 of 4** of the *Smart TV App Development* reference (plugin `smart-tv-app-development`), covering §4–§7. Sibling skills: `smart-tv-platforms-and-10-foot-ui` (§0–§3), `smart-tv-monetization-certification-and-operations` (§8–§14), `smart-tv-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `smart-tv-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[DURABLE]** — human factors, hardware physics, or a lesson every TV platform has\n>   independently arrived at. Does not expire.\n> - **[PLATFORM]** — specific to Roku, Tizen, webOS, Android TV, Fire OS\u002FVega, or tvOS.\n>   Verify against that vendor's current docs, which change annually with the model year.\n> - **[CONTESTED]** — real disagreement about approach, usually because the trade-off\n>   depends on your budget and platform mix.\n>\n> **⚠️ GOTCHA** boxes mark the mistakes that fail certification, get discovered only on a\n> five-year-old TV in someone's living room, or quietly halve your completion rate.\n>\n> **The three framings that organize everything below:**\n> 1. **You are writing for a 2015 phone bolted to a 2025 display.** TV silicon is\n>    cost-optimized to the bone. Assume ~1–2 GB RAM, a weak CPU, and a GPU that exists\n>    mostly to composite video. Your desktop intuitions about performance are wrong by an\n>    order of magnitude.\n> 2. **The remote has a D-pad, and that is the entire input model.** No pointer, no touch,\n>    no hover, no keyboard. Every interaction is up\u002Fdown\u002Fleft\u002Fright\u002FOK\u002Fback. Focus\n>    management is not a detail — it *is* the UI architecture.\n> 3. **The platform owner is your distributor, your competitor, and your ad network.**\n>    Certification is a gate they control, discovery placement is inventory they sell, and\n>    on most platforms they take a cut of your revenue. This is a commercial relationship\n>    wearing an SDK.\n\n---\n\n## §4. Video Playback\n\n### 4.1 The stack\n\n```\nmanifest (HLS .m3u8 \u002F DASH .mpd)\n  → ABR ladder selection (bitrate\u002Fresolution\u002Fcodec variants)\n    → segment fetch → buffer management\n      → demux → DECODE (hardware!) → render\n        → DRM license acquisition + key handling (§5)\n          → subtitles\u002Fcaptions, audio track selection, trick play\n```\n\n**[DURABLE] Use the platform's player.** On every TV platform, hardware-accelerated\ndecode is mandatory — software decode of 4K HEVC on TV silicon does not work. That means:\nRoku's `Video` node, Android's **Media3\u002FExoPlayer**, AVPlayer on tvOS, and the\nplatform-specific **AVPlay** (Tizen) or media APIs on webOS. On web platforms, MSE\u002FEME\nexists but the vendor's native path is usually the one that gets hardware decode and DRM\nright.\n\n### 4.2 Formats and the ladder\n\n- **HLS** (Apple-originating, dominant in the US, `.m3u8`) and **DASH** (`.mpd`, dominant\n  in Europe). **CMAF** lets one set of segments serve both, which is the modern answer to\n  \"must I encode twice?\"\n- **Codecs**: H.264\u002FAVC (universal baseline), HEVC\u002FH.265 (4K\u002FHDR, patent-encumbered),\n  VP9, AV1 (decode support is real on newer sets and absent on older ones).\n  **⚠️ Codec support varies by model year and by hardware tier within a model year.**\n  Query capability at runtime; never assume.\n- **HDR**: HDR10, HLG, Dolby Vision, HDR10+ — each with its own licensing and signalling.\n- **Audio**: AAC, AC-3\u002FE-AC-3, Dolby Atmos. **Loudness matters**: streaming\u002FSSAI targets\n  **−23 LUFS (EBU R128)**, US broadcast contexts **−24 LKFS (ATSC A\u002F85)**. Mismatched\n  loudness between content and ads is one of the most-complained-about defects in\n  streaming.\n- **Ladder design**: enough rungs to adapt smoothly, not so many that switching thrashes.\n  Include a low rung that works on bad connections — a TV user with a weak 5 GHz signal\n  is common.\n\n### 4.3 The metrics that matter\n\n**[DURABLE] TV video quality is measured by four numbers, and users feel all of them:**\n| Metric | Target |\n|---|---|\n| **Startup time (time-to-first-frame)** | **\u003C 2 s.** Certification programmes test this |\n| **Rebuffer ratio** | \u003C 0.5% of playback time |\n| **Average bitrate \u002F bitrate at start** | As high as the connection sustains |\n| **Playback failure rate** | \u003C 1% of attempts |\n\n**⚠️ Startup time is where TV apps most often fail certification and lose users.**\nTechniques: pre-warm the player, start the license request in parallel with the manifest\nfetch, use a low-bitrate first segment then ramp, and **never do a cold cascade of\nsequential network round trips** (auth → entitlement → manifest → license → first segment).\nParallelize what you can.\n\n**Trick play** (FF\u002FRW with thumbnails) requires an I-frame playlist or a sprite sheet of\nthumbnails. Users expect it; implementing it late is painful.\n\n**Captions and subtitles are not optional** (§14.1 → `smart-tv-monetization-certification-and-operations`) — WebVTT, TTML\u002FIMSC, CEA-608\u002F708 —\nand must honour the **platform's** caption style settings, which the user set once in\nsystem preferences and expects everywhere.\n\n---\n\n## §5. DRM\n\n### 5.1 The three-DRM reality\n\n**[DURABLE] There is no single DRM, and you will implement at least two.**\n\n| DRM | Owner | Where it's required |\n|---|---|---|\n| **Widevine** | Google | Android TV\u002FGoogle TV, Fire OS, Chrome, most web TVs, modern Roku |\n| **PlayReady** | Microsoft | Samsung Tizen, LG webOS, Xbox, many operators |\n| **FairPlay Streaming** | Apple | tvOS, Safari, iOS |\n\n**Widevine security levels** matter commercially: **L1** = crypto and decode both in the\nTEE (required by most studios for HD\u002F4K), **L3** = software (typically limited to SD by\nlicensing policy). Android TV\u002FGoogle TV gives you L1 on certified devices. **PlayReady\nSL3000** is the hardware-backed equivalent.\n\n**Multi-DRM with CENC (Common Encryption)** is the standard answer: encrypt once, package\nonce, and serve different license flows per platform. That's what makes shipping to six\nplatforms tractable.\n\n> **⚠️ GOTCHA — the encryption-scheme trap that silently breaks the older half of your\n> fleet.** CENC defines two schemes: **`cenc`** (AES-128 CTR) and **`cbcs`** (AES-128 CBC\n> with pattern encryption). FairPlay requires `cbcs`. Older Widevine and PlayReady devices\n> support only `cenc`. Choosing one scheme for everything **works perfectly on your test\n> devices and produces a black screen on a large slice of installed sets**. You generally\n> need both packagings, keyed off device capability — and this is exactly the class of\n> defect that reaches production because the QA fleet is all recent models.\n\n> **⚠️ GOTCHA — DRM has dated, vendor-specific server-side requirements.** PlayReady\n> revocation endpoints change; running an old license server can mean it quietly stops\n> enforcing current device blocks, while missing a new address can make a modern server\n> return an error the viewer experiences as a black screen. **Put vendor DRM changes on a\n> calendar with a re-check date.** They are not \"set and forget.\"\n\nAlso plan for: **HDCP** output protection (and the \"HDCP handshake failed\" support calls\nit generates through AV receivers), **license persistence** for offline\u002Fdownload where\nsupported, **key rotation** for live, and **concurrency\u002Fdevice limits** as a business rule\nthat must be enforced server-side.\n\n---\n\n## §6. Performance and Memory\n\n### 6.1 The hardware reality\n\n**[DURABLE] Budget as if you're targeting a low-end phone from a decade ago.** Roku\ndevices run ARM Cortex-A53\u002FA55\u002FA35-class cores (some older models MIPS); TV SoCs across\nall vendors are cost-optimized, thermally constrained, and shipped with the minimum RAM\nthat passes QA. A $30 streaming stick and a $3,000 OLED may run the same app on very\ndifferent silicon — **and the cheap device is the one most of your users have.**\n\n**The budgets that actually matter:**\n| Resource | Guidance |\n|---|---|\n| **App memory** | Often a few hundred MB total. Exceeding it means the OS kills you |\n| **Startup to first interactive frame** | Target \u003C 3 s cold |\n| **Time to first video frame** | Target \u003C 2 s (§4.3) |\n| **Frame time** | 16.6 ms — and you will blow it far more easily than on mobile |\n| **Image decode** | The dominant memory consumer in a poster-grid UI |\n\n### 6.2 The techniques\n\n1. **Virtualize every long list.** Never instantiate 500 tiles. Recycle views\u002Fnodes and\n   render a window plus a small buffer. **This is the single highest-impact optimization\n   in TV development**, because the rail-grid UI is inherently a huge-list problem.\n2. **Size images server-side to the exact display size.** Downloading a 1920px poster to\n   render at 300px wastes bandwidth *and* decode memory *and* CPU. Use a thumbnailing CDN\n   and request precise dimensions.\n3. **Aggressively evict off-screen image bitmaps.** Memory pressure on TV is real.\n4. **Preload the *next* screen's data, not everything.**\n5. **Minimize DOM work on web platforms** — old Chromium, weak CPU. Batch mutations,\n   avoid layout thrashing, prefer `transform`\u002F`opacity` animations, and keep the node\n   count low.\n6. **Never block on network during navigation.** Show the shell instantly, fill it in.\n7. **Watch your JS bundle size** — parse and compile cost is significant on these CPUs.\n8. **Profile on the worst device you support, not the best.**\n\n**[PLATFORM] Roku requires memory monitoring for certification.** Apps must use the\n**`roAppMemoryMonitor`** APIs to observe and respond to memory events in order to pass\ncertification testing — that is, the platform mandates that you handle memory pressure\nrather than merely hoping. The **BrightScript Profiler** and **Roku Resource Monitor**\nare the tools; Roku also ships **`rokuos-perfetto-utils`** for tracing.\n\n---\n\n## §7. Lifecycle, Deep Linking, and Discovery\n\n### 7.1 Lifecycle\n\nTV apps get suspended, backgrounded, and killed aggressively, and the user may return\nhours later expecting to be exactly where they were.\n\n**[DURABLE] Save playback position continuously — every few seconds — not on exit.** You\nwill not reliably get an exit callback. The same applies to navigation state, partially\ncompleted forms, and auth state.\n\n**[PLATFORM] Roku's Instant Resume** is a formal version of this, and it is\n**becoming a certification requirement**: Roku's Spring 2026 certification update added a\nrequirement to implement Instant Resume **by 1 October 2026** for apps in the US Streaming\nStore meeting the specified streaming criteria. The pattern — return the user to exactly\nwhat they were watching, instantly — is where the whole industry is heading regardless of\nplatform.\n\n### 7.2 Deep linking\n\n**[DURABLE] Deep linking is not a nice-to-have; it is how the platform's search, voice,\nrecommendations, and home-screen rows launch your content.** If your app can't be deep\nlinked, **it is invisible to the platform's discovery surfaces**, which is where a large\nshare of your traffic would come from.\n\nTwo modes to support:\n- **Play** — launch directly into playback of a specific asset.\n- **Detail\u002Fpreview** — launch to the content's detail page.\n\nYou must handle: cold start with a deep link, warm start with a deep link, an\nunentitled user (route to sign-in or upsell **and then continue to the content**), and\ncontent that no longer exists (a graceful message, not a crash).\n\n### 7.3 Content feeds and discovery integration\n\nEach platform ingests a catalogue feed to power search, voice, and home-screen rows.\n**[PLATFORM]** Roku Search Feed \u002F Direct Publisher-lineage feeds, Android TV's Watch Next\nand channel\u002Fprogram APIs, Apple's TV App integration, Amazon's catalogue ingestion, and\nSamsung\u002FLG equivalents. **Getting into these feeds is usually the highest-leverage growth\nwork available**, and it is unglamorous data-plumbing rather than app development.\n\n**Continue Watching** integration at the *platform* level (not just in-app) is\nincreasingly expected and, on Roku, tied to the Instant Resume requirement above.\n","# Smart TV Apps: Video Playback, DRM, Performance and Memory, and Lifecycle\n\n> **Part 2 of 4** of the *Smart TV App Development* reference (plugin `smart-tv-app-development`), covering §4–§7. Sibling skills: `smart-tv-platforms-and-10-foot-ui` (§0–§3), `smart-tv-monetization-certification-and-operations` (§8–§14), `smart-tv-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `smart-tv-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[DURABLE]** — human factors, hardware physics, or a lesson every TV platform has\n>   independently arrived at. Does not expire.\n> - **[PLATFORM]** — specific to Roku, Tizen, webOS, Android TV, Fire OS\u002FVega, or tvOS.\n>   Verify against that vendor's current docs, which change annually with the model year.\n> - **[CONTESTED]** — real disagreement about approach, usually because the trade-off\n>   depends on your budget and platform mix.\n>\n> **⚠️ GOTCHA** boxes mark the mistakes that fail certification, get discovered only on a\n> five-year-old TV in someone's living room, or quietly halve your completion rate.\n>\n> **The three framings that organize everything below:**\n> 1. **You are writing for a 2015 phone bolted to a 2025 display.** TV silicon is\n>    cost-optimized to the bone. Assume ~1–2 GB RAM, a weak CPU, and a GPU that exists\n>    mostly to composite video. Your desktop intuitions about performance are wrong by an\n>    order of magnitude.\n> 2. **The remote has a D-pad, and that is the entire input model.** No pointer, no touch,\n>    no hover, no keyboard. Every interaction is up\u002Fdown\u002Fleft\u002Fright\u002FOK\u002Fback. Focus\n>    management is not a detail — it *is* the UI architecture.\n> 3. **The platform owner is your distributor, your competitor, and your ad network.**\n>    Certification is a gate they control, discovery placement is inventory they sell, and\n>    on most platforms they take a cut of your revenue. This is a commercial relationship\n>    wearing an SDK.\n\n---\n\n## §4. Video Playback\n\n### 4.1 The stack\n\n```\nmanifest (HLS .m3u8 \u002F DASH .mpd)\n  → ABR ladder selection (bitrate\u002Fresolution\u002Fcodec variants)\n    → segment fetch → buffer management\n      → demux → DECODE (hardware!) → render\n        → DRM license acquisition + key handling (§5)\n          → subtitles\u002Fcaptions, audio track selection, trick play\n```\n\n**[DURABLE] Use the platform's player.** On every TV platform, hardware-accelerated\ndecode is mandatory — software decode of 4K HEVC on TV silicon does not work. That means:\nRoku's `Video` node, Android's **Media3\u002FExoPlayer**, AVPlayer on tvOS, and the\nplatform-specific **AVPlay** (Tizen) or media APIs on webOS. On web platforms, MSE\u002FEME\nexists but the vendor's native path is usually the one that gets hardware decode and DRM\nright.\n\n### 4.2 Formats and the ladder\n\n- **HLS** (Apple-originating, dominant in the US, `.m3u8`) and **DASH** (`.mpd`, dominant\n  in Europe). **CMAF** lets one set of segments serve both, which is the modern answer to\n  \"must I encode twice?\"\n- **Codecs**: H.264\u002FAVC (universal baseline), HEVC\u002FH.265 (4K\u002FHDR, patent-encumbered),\n  VP9, AV1 (decode support is real on newer sets and absent on older ones).\n  **⚠️ Codec support varies by model year and by hardware tier within a model year.**\n  Query capability at runtime; never assume.\n- **HDR**: HDR10, HLG, Dolby Vision, HDR10+ — each with its own licensing and signalling.\n- **Audio**: AAC, AC-3\u002FE-AC-3, Dolby Atmos. **Loudness matters**: streaming\u002FSSAI targets\n  **−23 LUFS (EBU R128)**, US broadcast contexts **−24 LKFS (ATSC A\u002F85)**. Mismatched\n  loudness between content and ads is one of the most-complained-about defects in\n  streaming.\n- **Ladder design**: enough rungs to adapt smoothly, not so many that switching thrashes.\n  Include a low rung that works on bad connections — a TV user with a weak 5 GHz signal\n  is common.\n\n### 4.3 The metrics that matter\n\n**[DURABLE] TV video quality is measured by four numbers, and users feel all of them:**\n| Metric | Target |\n|---|---|\n| **Startup time (time-to-first-frame)** | **\u003C 2 s.** Certification programmes test this |\n| **Rebuffer ratio** | \u003C 0.5% of playback time |\n| **Average bitrate \u002F bitrate at start** | As high as the connection sustains |\n| **Playback failure rate** | \u003C 1% of attempts |\n\n**⚠️ Startup time is where TV apps most often fail certification and lose users.**\nTechniques: pre-warm the player, start the license request in parallel with the manifest\nfetch, use a low-bitrate first segment then ramp, and **never do a cold cascade of\nsequential network round trips** (auth → entitlement → manifest → license → first segment).\nParallelize what you can.\n\n**Trick play** (FF\u002FRW with thumbnails) requires an I-frame playlist or a sprite sheet of\nthumbnails. Users expect it; implementing it late is painful.\n\n**Captions and subtitles are not optional** (§14.1 → `smart-tv-monetization-certification-and-operations`) — WebVTT, TTML\u002FIMSC, CEA-608\u002F708 —\nand must honour the **platform's** caption style settings, which the user set once in\nsystem preferences and expects everywhere.\n\n---\n\n## §5. DRM\n\n### 5.1 The three-DRM reality\n\n**[DURABLE] There is no single DRM, and you will implement at least two.**\n\n| DRM | Owner | Where it's required |\n|---|---|---|\n| **Widevine** | Google | Android TV\u002FGoogle TV, Fire OS, Chrome, most web TVs, modern Roku |\n| **PlayReady** | Microsoft | Samsung Tizen, LG webOS, Xbox, many operators |\n| **FairPlay Streaming** | Apple | tvOS, Safari, iOS |\n\n**Widevine security levels** matter commercially: **L1** = crypto and decode both in the\nTEE (required by most studios for HD\u002F4K), **L3** = software (typically limited to SD by\nlicensing policy). Android TV\u002FGoogle TV gives you L1 on certified devices. **PlayReady\nSL3000** is the hardware-backed equivalent.\n\n**Multi-DRM with CENC (Common Encryption)** is the standard answer: encrypt once, package\nonce, and serve different license flows per platform. That's what makes shipping to six\nplatforms tractable.\n\n> **⚠️ GOTCHA — the encryption-scheme trap that silently breaks the older half of your\n> fleet.** CENC defines two schemes: **`cenc`** (AES-128 CTR) and **`cbcs`** (AES-128 CBC\n> with pattern encryption). FairPlay requires `cbcs`. Older Widevine and PlayReady devices\n> support only `cenc`. Choosing one scheme for everything **works perfectly on your test\n> devices and produces a black screen on a large slice of installed sets**. You generally\n> need both packagings, keyed off device capability — and this is exactly the class of\n> defect that reaches production because the QA fleet is all recent models.\n\n> **⚠️ GOTCHA — DRM has dated, vendor-specific server-side requirements.** PlayReady\n> revocation endpoints change; running an old license server can mean it quietly stops\n> enforcing current device blocks, while missing a new address can make a modern server\n> return an error the viewer experiences as a black screen. **Put vendor DRM changes on a\n> calendar with a re-check date.** They are not \"set and forget.\"\n\nAlso plan for: **HDCP** output protection (and the \"HDCP handshake failed\" support calls\nit generates through AV receivers), **license persistence** for offline\u002Fdownload where\nsupported, **key rotation** for live, and **concurrency\u002Fdevice limits** as a business rule\nthat must be enforced server-side.\n\n---\n\n## §6. Performance and Memory\n\n### 6.1 The hardware reality\n\n**[DURABLE] Budget as if you're targeting a low-end phone from a decade ago.** Roku\ndevices run ARM Cortex-A53\u002FA55\u002FA35-class cores (some older models MIPS); TV SoCs across\nall vendors are cost-optimized, thermally constrained, and shipped with the minimum RAM\nthat passes QA. A $30 streaming stick and a $3,000 OLED may run the same app on very\ndifferent silicon — **and the cheap device is the one most of your users have.**\n\n**The budgets that actually matter:**\n| Resource | Guidance |\n|---|---|\n| **App memory** | Often a few hundred MB total. Exceeding it means the OS kills you |\n| **Startup to first interactive frame** | Target \u003C 3 s cold |\n| **Time to first video frame** | Target \u003C 2 s (§4.3) |\n| **Frame time** | 16.6 ms — and you will blow it far more easily than on mobile |\n| **Image decode** | The dominant memory consumer in a poster-grid UI |\n\n### 6.2 The techniques\n\n1. **Virtualize every long list.** Never instantiate 500 tiles. Recycle views\u002Fnodes and\n   render a window plus a small buffer. **This is the single highest-impact optimization\n   in TV development**, because the rail-grid UI is inherently a huge-list problem.\n2. **Size images server-side to the exact display size.** Downloading a 1920px poster to\n   render at 300px wastes bandwidth *and* decode memory *and* CPU. Use a thumbnailing CDN\n   and request precise dimensions.\n3. **Aggressively evict off-screen image bitmaps.** Memory pressure on TV is real.\n4. **Preload the *next* screen's data, not everything.**\n5. **Minimize DOM work on web platforms** — old Chromium, weak CPU. Batch mutations,\n   avoid layout thrashing, prefer `transform`\u002F`opacity` animations, and keep the node\n   count low.\n6. **Never block on network during navigation.** Show the shell instantly, fill it in.\n7. **Watch your JS bundle size** — parse and compile cost is significant on these CPUs.\n8. **Profile on the worst device you support, not the best.**\n\n**[PLATFORM] Roku requires memory monitoring for certification.** Apps must use the\n**`roAppMemoryMonitor`** APIs to observe and respond to memory events in order to pass\ncertification testing — that is, the platform mandates that you handle memory pressure\nrather than merely hoping. The **BrightScript Profiler** and **Roku Resource Monitor**\nare the tools; Roku also ships **`rokuos-perfetto-utils`** for tracing.\n\n---\n\n## §7. Lifecycle, Deep Linking, and Discovery\n\n### 7.1 Lifecycle\n\nTV apps get suspended, backgrounded, and killed aggressively, and the user may return\nhours later expecting to be exactly where they were.\n\n**[DURABLE] Save playback position continuously — every few seconds — not on exit.** You\nwill not reliably get an exit callback. The same applies to navigation state, partially\ncompleted forms, and auth state.\n\n**[PLATFORM] Roku's Instant Resume** is a formal version of this, and it is\n**becoming a certification requirement**: Roku's Spring 2026 certification update added a\nrequirement to implement Instant Resume **by 1 October 2026** for apps in the US Streaming\nStore meeting the specified streaming criteria. The pattern — return the user to exactly\nwhat they were watching, instantly — is where the whole industry is heading regardless of\nplatform.\n\n### 7.2 Deep linking\n\n**[DURABLE] Deep linking is not a nice-to-have; it is how the platform's search, voice,\nrecommendations, and home-screen rows launch your content.** If your app can't be deep\nlinked, **it is invisible to the platform's discovery surfaces**, which is where a large\nshare of your traffic would come from.\n\nTwo modes to support:\n- **Play** — launch directly into playback of a specific asset.\n- **Detail\u002Fpreview** — launch to the content's detail page.\n\nYou must handle: cold start with a deep link, warm start with a deep link, an\nunentitled user (route to sign-in or upsell **and then continue to the content**), and\ncontent that no longer exists (a graceful message, not a crash).\n\n### 7.3 Content feeds and discovery integration\n\nEach platform ingests a catalogue feed to power search, voice, and home-screen rows.\n**[PLATFORM]** Roku Search Feed \u002F Direct Publisher-lineage feeds, Android TV's Watch Next\nand channel\u002Fprogram APIs, Apple's TV App integration, Amazon's catalogue ingestion, and\nSamsung\u002FLG equivalents. **Getting into these feeds is usually the highest-leverage growth\nwork available**, and it is unglamorous data-plumbing rather than app development.\n\n**Continue Watching** integration at the *platform* level (not just in-app) is\nincreasingly expected and, on Roku, tied to the Instant Resume requirement above.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fsmart-tv-app-development\u002Fskills\u002Fsmart-tv-playback-drm-and-performance",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill smart-tv-playback-drm-and-performance",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill smart-tv-playback-drm-and-performance",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill smart-tv-playback-drm-and-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fsmart-tv-app-development\u002Fskills\u002Fsmart-tv-playback-drm-and-performance\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]