<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019eb8e2-2f09-7304-abb3-e72bf552f982,g:507b2863-9e41-465f-832b-a991174a441c-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:roku="http://www.roku.com/20260618" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.roku.com/20260618">
  <xs:import namespace="http://fasb.org/srt/2026" schemaLocation="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2026" schemaLocation="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/country/2026" schemaLocation="https://xbrl.sec.gov/country/2026/country-2026.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2026" schemaLocation="https://xbrl.sec.gov/dei/2026/dei-2026.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/stpr/2026" schemaLocation="https://xbrl.sec.gov/stpr/2026/stpr-2026.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="roku-20260618_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="roku-20260618_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="roku-20260618_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="roku-20260618_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="Cover" roleURI="http://www.roku.com/role/Cover">
        <link:definition>0000001 - Document - Cover</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedBalanceSheets" roleURI="http://www.roku.com/role/ConsolidatedBalanceSheets">
        <link:definition>9952151 - Statement - Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedBalanceSheetsParenthetical" roleURI="http://www.roku.com/role/ConsolidatedBalanceSheetsParenthetical">
        <link:definition>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofOperations" roleURI="http://www.roku.com/role/ConsolidatedStatementsofOperations">
        <link:definition>9952153 - Statement - Consolidated Statements of Operations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" roleURI="http://www.roku.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS">
        <link:definition>9952154 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofStockholdersEquity" roleURI="http://www.roku.com/role/ConsolidatedStatementsofStockholdersEquity">
        <link:definition>9952155 - Statement - Consolidated Statements of Stockholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofCashFlows" roleURI="http://www.roku.com/role/ConsolidatedStatementsofCashFlows">
        <link:definition>9952156 - Statement - Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofCashFlowsParenthetical" roleURI="http://www.roku.com/role/ConsolidatedStatementsofCashFlowsParenthetical">
        <link:definition>9952157 - Statement - Consolidated Statements of Cash Flows (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="TheCompany" roleURI="http://www.roku.com/role/TheCompany">
        <link:definition>9952158 - Disclosure - The Company</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentation" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentation">
        <link:definition>9952159 - Disclosure - Significant Accounting Policies and Basis of Presentation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Revenue" roleURI="http://www.roku.com/role/Revenue">
        <link:definition>9952160 - Disclosure - Revenue</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessCombination" roleURI="http://www.roku.com/role/BusinessCombination">
        <link:definition>9952161 - Disclosure - Business Combination</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssets" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssets">
        <link:definition>9952162 - Disclosure - Goodwill and Intangible Assets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponents" roleURI="http://www.roku.com/role/BalanceSheetComponents">
        <link:definition>9952163 - Disclosure - Balance Sheet Components</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ContentAssets" roleURI="http://www.roku.com/role/ContentAssets">
        <link:definition>9952164 - Disclosure - Content Assets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StrategicInvestments" roleURI="http://www.roku.com/role/StrategicInvestments">
        <link:definition>9952165 - Disclosure - Strategic Investments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueDisclosure" roleURI="http://www.roku.com/role/FairValueDisclosure">
        <link:definition>9952166 - Disclosure - Fair Value Disclosure</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Leases" roleURI="http://www.roku.com/role/Leases">
        <link:definition>9952167 - Disclosure - Leases</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Debt" roleURI="http://www.roku.com/role/Debt">
        <link:definition>9952168 - Disclosure - Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquity" roleURI="http://www.roku.com/role/StockholdersEquity">
        <link:definition>9952169 - Disclosure - Stockholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingencies" roleURI="http://www.roku.com/role/CommitmentsandContingencies">
        <link:definition>9952170 - Disclosure - Commitments and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxes" roleURI="http://www.roku.com/role/IncomeTaxes">
        <link:definition>9952171 - Disclosure - Income Taxes</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RetirementPlans" roleURI="http://www.roku.com/role/RetirementPlans">
        <link:definition>9952172 - Disclosure - Retirement Plans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerShare" roleURI="http://www.roku.com/role/NetIncomeLossPerShare">
        <link:definition>9952173 - Disclosure - Net Income (Loss) Per Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformation" roleURI="http://www.roku.com/role/SegmentInformation">
        <link:definition>9952174 - Disclosure - Segment Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RestructuringCharges" roleURI="http://www.roku.com/role/RestructuringCharges">
        <link:definition>9952175 - Disclosure - Restructuring Charges</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentationPolicies" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentationPolicies">
        <link:definition>9955511 - Disclosure - Significant Accounting Policies and Basis of Presentation (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentationTables" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentationTables">
        <link:definition>9955512 - Disclosure - Significant Accounting Policies and Basis of Presentation (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueTables" roleURI="http://www.roku.com/role/RevenueTables">
        <link:definition>9955513 - Disclosure - Revenue (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessCombinationTables" roleURI="http://www.roku.com/role/BusinessCombinationTables">
        <link:definition>9955514 - Disclosure - Business Combination (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssetsTables" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsTables">
        <link:definition>9955515 - Disclosure - Goodwill and Intangible Assets (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsTables" roleURI="http://www.roku.com/role/BalanceSheetComponentsTables">
        <link:definition>9955516 - Disclosure - Balance Sheet Components (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ContentAssetsTables" roleURI="http://www.roku.com/role/ContentAssetsTables">
        <link:definition>9955517 - Disclosure - Content Assets (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueDisclosureTables" roleURI="http://www.roku.com/role/FairValueDisclosureTables">
        <link:definition>9955518 - Disclosure - Fair Value Disclosure (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesTables" roleURI="http://www.roku.com/role/LeasesTables">
        <link:definition>9955519 - Disclosure - Leases (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityTables" roleURI="http://www.roku.com/role/StockholdersEquityTables">
        <link:definition>9955520 - Disclosure - Stockholders' Equity (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentandContingenciesTables" roleURI="http://www.roku.com/role/CommitmentandContingenciesTables">
        <link:definition>9955521 - Disclosure - Commitment and Contingencies (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesTables" roleURI="http://www.roku.com/role/IncomeTaxesTables">
        <link:definition>9955522 - Disclosure - Income Taxes (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerShareTables" roleURI="http://www.roku.com/role/NetIncomeLossPerShareTables">
        <link:definition>9955523 - Disclosure - Net Income (Loss) Per Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformationTables" roleURI="http://www.roku.com/role/SegmentInformationTables">
        <link:definition>9955524 - Disclosure - Segment Information (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RestructuringChargesTables" roleURI="http://www.roku.com/role/RestructuringChargesTables">
        <link:definition>9955525 - Disclosure - Restructuring Charges (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="TheCompanyDetails" roleURI="http://www.roku.com/role/TheCompanyDetails">
        <link:definition>9955526 - Disclosure - The Company (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentationNarrativeDetails" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentationNarrativeDetails">
        <link:definition>9955527 - Disclosure - Significant Accounting Policies and Basis of Presentation - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentationScheduleofAllowanceforSalesReturnsDetails" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentationScheduleofAllowanceforSalesReturnsDetails">
        <link:definition>9955528 - Disclosure - Significant Accounting Policies and Basis of Presentation - Schedule of Allowance for Sales Returns (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentationScheduleofAllowanceforSalesIncentivesDetails" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentationScheduleofAllowanceforSalesIncentivesDetails">
        <link:definition>9955529 - Disclosure - Significant Accounting Policies and Basis of Presentation - Schedule of Allowance for Sales Incentives (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesandBasisofPresentationScheduleofAllowanceforDoubtfulAccountsDetails" roleURI="http://www.roku.com/role/SignificantAccountingPoliciesandBasisofPresentationScheduleofAllowanceforDoubtfulAccountsDetails">
        <link:definition>9955530 - Disclosure - Significant Accounting Policies and Basis of Presentation - Schedule of Allowance for Doubtful Accounts (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueNarrativeDetails" roleURI="http://www.roku.com/role/RevenueNarrativeDetails">
        <link:definition>9955531 - Disclosure - Revenue - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueNarrativeDetails_1" roleURI="http://www.roku.com/role/RevenueNarrativeDetails_1">
        <link:definition>9955531 - Disclosure - Revenue - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueScheduleofContractBalancesDetails" roleURI="http://www.roku.com/role/RevenueScheduleofContractBalancesDetails">
        <link:definition>9955532 - Disclosure - Revenue - Schedule of Contract Balances (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueScheduleofContractBalancesDetails_1" roleURI="http://www.roku.com/role/RevenueScheduleofContractBalancesDetails_1">
        <link:definition>9955532 - Disclosure - Revenue - Schedule of Contract Balances (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessCombinationNarrativeDetails" roleURI="http://www.roku.com/role/BusinessCombinationNarrativeDetails">
        <link:definition>9955533 - Disclosure - Business Combination - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessCombinationNarrativeDetails_1" roleURI="http://www.roku.com/role/BusinessCombinationNarrativeDetails_1">
        <link:definition>9955533 - Disclosure - Business Combination - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessCombinationScheduleofPreliminaryAllocationofPurchaseConsiderationtoTangibleandIntangibleAssetsAcquiredandLiabilitiesAssumedDetails" roleURI="http://www.roku.com/role/BusinessCombinationScheduleofPreliminaryAllocationofPurchaseConsiderationtoTangibleandIntangibleAssetsAcquiredandLiabilitiesAssumedDetails">
        <link:definition>9955534 - Disclosure - Business Combination - Schedule of Preliminary Allocation of Purchase Consideration to Tangible and Intangible Assets Acquired and Liabilities Assumed (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessCombinationSummaryofPreliminaryValuationofIntangibleAssetsAcquiredDetails" roleURI="http://www.roku.com/role/BusinessCombinationSummaryofPreliminaryValuationofIntangibleAssetsAcquiredDetails">
        <link:definition>9955535 - Disclosure - Business Combination - Summary of Preliminary Valuation of Intangible Assets Acquired (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssetsScheduleofGoodwillDetails" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsScheduleofGoodwillDetails">
        <link:definition>9955536 - Disclosure - Goodwill and Intangible Assets - Schedule of Goodwill (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails">
        <link:definition>9955537 - Disclosure - Goodwill and Intangible Assets - Summary of Intangible Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails_1" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails_1">
        <link:definition>9955537 - Disclosure - Goodwill and Intangible Assets - Summary of Intangible Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssetsNarrativeDetails" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsNarrativeDetails">
        <link:definition>9955538 - Disclosure - Goodwill and Intangible Assets - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandIntangibleAssetsScheduleofEstimatedFutureAmortizationExpenseforIntangibleAssetDetails" roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsScheduleofEstimatedFutureAmortizationExpenseforIntangibleAssetDetails">
        <link:definition>9955539 - Disclosure - Goodwill and Intangible Assets - Schedule of Estimated Future Amortization Expense for Intangible Asset (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofAccountsReceivableNetDetails" roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofAccountsReceivableNetDetails">
        <link:definition>9955540 - Disclosure - Balance Sheet Components - Schedule of Accounts Receivable, Net (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails">
        <link:definition>9955541 - Disclosure - Balance Sheet Components - Schedule of Property and Equipment, Net (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsNarrativeDetails" roleURI="http://www.roku.com/role/BalanceSheetComponentsNarrativeDetails">
        <link:definition>9955542 - Disclosure - Balance Sheet Components - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails">
        <link:definition>9955543 - Disclosure - Balance Sheet Components - Schedule of Accrued Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofDeferredRevenueDetails" roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofDeferredRevenueDetails">
        <link:definition>9955544 - Disclosure - Balance Sheet Components - Schedule of Deferred Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofOtherLongTermLiabilitiesDetails" roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofOtherLongTermLiabilitiesDetails">
        <link:definition>9955545 - Disclosure - Balance Sheet Components - Schedule of Other Long Term Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ContentAssetsScheduleofContentAssetsNetDetails" roleURI="http://www.roku.com/role/ContentAssetsScheduleofContentAssetsNetDetails">
        <link:definition>9955546 - Disclosure - Content Assets - Schedule of Content Assets Net (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ContentAssetsScheduleOfAmortizationOfContentAssetsDetails" roleURI="http://www.roku.com/role/ContentAssetsScheduleOfAmortizationOfContentAssetsDetails">
        <link:definition>9955547 - Disclosure - Content Assets - Schedule Of Amortization Of Content Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ContentAssetsNarrativeDetails" roleURI="http://www.roku.com/role/ContentAssetsNarrativeDetails">
        <link:definition>9955548 - Disclosure - Content Assets - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ContentAssetsScheduleofAmortizationExpenseforLicensedContentAssetsDetails" roleURI="http://www.roku.com/role/ContentAssetsScheduleofAmortizationExpenseforLicensedContentAssetsDetails">
        <link:definition>9955549 - Disclosure - Content Assets - Schedule of Amortization Expense for Licensed Content Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StrategicInvestmentsNarrativeDetails" roleURI="http://www.roku.com/role/StrategicInvestmentsNarrativeDetails">
        <link:definition>9955550 - Disclosure - Strategic Investments - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueDisclosureScheduleofFinancialAssetsMeasuredatFairValueDetails" roleURI="http://www.roku.com/role/FairValueDisclosureScheduleofFinancialAssetsMeasuredatFairValueDetails">
        <link:definition>9955551 - Disclosure - Fair Value Disclosure - Schedule of Financial Assets Measured at Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueDisclosureScheduleofFairValueAssetsMeasuredonRecurringBasisUnobservableInputReconciliationDetails" roleURI="http://www.roku.com/role/FairValueDisclosureScheduleofFairValueAssetsMeasuredonRecurringBasisUnobservableInputReconciliationDetails">
        <link:definition>9955552 - Disclosure - Fair Value Disclosure - Schedule of Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueDisclosureNarrativeDetails" roleURI="http://www.roku.com/role/FairValueDisclosureNarrativeDetails">
        <link:definition>9955553 - Disclosure - Fair Value Disclosure - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesNarrativeDetails" roleURI="http://www.roku.com/role/LeasesNarrativeDetails">
        <link:definition>9955554 - Disclosure - Leases - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofComponentsofLeaseExpenseDetails" roleURI="http://www.roku.com/role/LeasesScheduleofComponentsofLeaseExpenseDetails">
        <link:definition>9955555 - Disclosure - Leases - Schedule of Components of Lease Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofSupplementalCashFlowInformationRelatedtoLeasesDetails" roleURI="http://www.roku.com/role/LeasesScheduleofSupplementalCashFlowInformationRelatedtoLeasesDetails">
        <link:definition>9955556 - Disclosure - Leases - Schedule of Supplemental Cash Flow Information Related to Leases (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofSupplementalBalanceSheetInformationRelatedtoLeasesDetails" roleURI="http://www.roku.com/role/LeasesScheduleofSupplementalBalanceSheetInformationRelatedtoLeasesDetails">
        <link:definition>9955557 - Disclosure - Leases - Schedule of Supplemental Balance Sheet Information Related to Leases (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails" roleURI="http://www.roku.com/role/LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails">
        <link:definition>9955558 - Disclosure - Leases - Schedule of Future Lease Payments under Operating Leases (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails_1" roleURI="http://www.roku.com/role/LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails_1">
        <link:definition>9955558 - Disclosure - Leases - Schedule of Future Lease Payments under Operating Leases (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtNarrativeDetails" roleURI="http://www.roku.com/role/DebtNarrativeDetails">
        <link:definition>9955559 - Disclosure - Debt - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityPreferredStockDetails" roleURI="http://www.roku.com/role/StockholdersEquityPreferredStockDetails">
        <link:definition>9955560 - Disclosure - Stockholders' Equity - Preferred Stock (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityCommonStockDetails" roleURI="http://www.roku.com/role/StockholdersEquityCommonStockDetails">
        <link:definition>9955561 - Disclosure - Stockholders' Equity - Common Stock (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityStockRepurchaseProgramDetails" roleURI="http://www.roku.com/role/StockholdersEquityStockRepurchaseProgramDetails">
        <link:definition>9955562 - Disclosure - Stockholders' Equity - Stock Repurchase Program (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofShareRepurchaseActivityDetails" roleURI="http://www.roku.com/role/StockholdersEquityScheduleofShareRepurchaseActivityDetails">
        <link:definition>9955563 - Disclosure - Stockholders' Equity - Schedule of Share Repurchase Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofReservedSharesofCommonStockforIssuanceDetails" roleURI="http://www.roku.com/role/StockholdersEquityScheduleofReservedSharesofCommonStockforIssuanceDetails">
        <link:definition>9955564 - Disclosure - Stockholders' Equity - Schedule of Reserved Shares of Common Stock for Issuance (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityEquityIncentivePlansDetails" roleURI="http://www.roku.com/role/StockholdersEquityEquityIncentivePlansDetails">
        <link:definition>9955565 - Disclosure - Stockholders' Equity - Equity Incentive Plans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquitySummaryofRestrictedStockUnitActivityDetails" roleURI="http://www.roku.com/role/StockholdersEquitySummaryofRestrictedStockUnitActivityDetails">
        <link:definition>9955566 - Disclosure - Stockholders' Equity - Summary of Restricted Stock Unit Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityRestrictedStockUnitsDetails" roleURI="http://www.roku.com/role/StockholdersEquityRestrictedStockUnitsDetails">
        <link:definition>9955567 - Disclosure - Stockholders' Equity - Restricted Stock Units (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquitySummaryofStockOptionActivityDetails" roleURI="http://www.roku.com/role/StockholdersEquitySummaryofStockOptionActivityDetails">
        <link:definition>9955568 - Disclosure - Stockholders' Equity - Summary of Stock Option Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityStockOptionPlanDetails" roleURI="http://www.roku.com/role/StockholdersEquityStockOptionPlanDetails">
        <link:definition>9955569 - Disclosure - Stockholders' Equity - Stock Option Plan (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityStockbasedCompensationDetails" roleURI="http://www.roku.com/role/StockholdersEquityStockbasedCompensationDetails">
        <link:definition>9955570 - Disclosure - Stockholders' Equity - Stock-based Compensation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofSharebasedCompensationExpenseDetails" roleURI="http://www.roku.com/role/StockholdersEquityScheduleofSharebasedCompensationExpenseDetails">
        <link:definition>9955571 - Disclosure - Stockholders' Equity - Schedule of Share-based Compensation Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofSharebasedCompensationExpenseDetails_1" roleURI="http://www.roku.com/role/StockholdersEquityScheduleofSharebasedCompensationExpenseDetails_1">
        <link:definition>9955571 - Disclosure - Stockholders' Equity - Schedule of Share-based Compensation Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquitySummaryofAssumptionsUsedtoValueStockOptionsGrantedDetails" roleURI="http://www.roku.com/role/StockholdersEquitySummaryofAssumptionsUsedtoValueStockOptionsGrantedDetails">
        <link:definition>9955572 - Disclosure - Stockholders' Equity - Summary of Assumptions Used to Value Stock Options Granted (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesScheduleofPaymentsforContentObligationsDetails" roleURI="http://www.roku.com/role/CommitmentsandContingenciesScheduleofPaymentsforContentObligationsDetails">
        <link:definition>9955573 - Disclosure - Commitments and Contingencies - Schedule of Payments for Content Obligations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesScheduleofComponentsofIncomeLossBeforeIncomeTaxesDetails" roleURI="http://www.roku.com/role/IncomeTaxesScheduleofComponentsofIncomeLossBeforeIncomeTaxesDetails">
        <link:definition>9955574 - Disclosure - Income Taxes - Schedule of Components of Income (Loss) Before Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesScheduleofIncomeTaxBenefitExpenseDetails" roleURI="http://www.roku.com/role/IncomeTaxesScheduleofIncomeTaxBenefitExpenseDetails">
        <link:definition>9955575 - Disclosure - Income Taxes - Schedule of Income Tax (Benefit) Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesScheduleofReconciliationofStatutoryFederalIncomeTaxRatetoEffectiveTaxRateDetails" roleURI="http://www.roku.com/role/IncomeTaxesScheduleofReconciliationofStatutoryFederalIncomeTaxRatetoEffectiveTaxRateDetails">
        <link:definition>9955576 - Disclosure - Income Taxes - Schedule of Reconciliation of Statutory Federal Income Tax Rate to Effective Tax Rate (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesSummaryofSignificantComponentsofDeferredIncomeTaxAssetsandLiabilitiesDetails" roleURI="http://www.roku.com/role/IncomeTaxesSummaryofSignificantComponentsofDeferredIncomeTaxAssetsandLiabilitiesDetails">
        <link:definition>9955577 - Disclosure - Income Taxes - Summary of Significant Components of Deferred Income Tax Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesNarrativeDetails" roleURI="http://www.roku.com/role/IncomeTaxesNarrativeDetails">
        <link:definition>9955578 - Disclosure - Income Taxes - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesSummaryofReconciliationofBeginningandEndingAmountofUnrecognizedTaxBenefitsDetails" roleURI="http://www.roku.com/role/IncomeTaxesSummaryofReconciliationofBeginningandEndingAmountofUnrecognizedTaxBenefitsDetails">
        <link:definition>9955579 - Disclosure - Income Taxes - Summary of Reconciliation of Beginning and Ending Amount of Unrecognized Tax Benefits (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RetirementPlansNarrativeDetails" roleURI="http://www.roku.com/role/RetirementPlansNarrativeDetails">
        <link:definition>9955580 - Disclosure - Retirement Plans - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerShareScheduleofCalculationofBasicandDilutedNetIncomeLossPerShareDetails" roleURI="http://www.roku.com/role/NetIncomeLossPerShareScheduleofCalculationofBasicandDilutedNetIncomeLossPerShareDetails">
        <link:definition>9955581 - Disclosure - Net Income (Loss) Per Share - Schedule of Calculation of Basic and Diluted Net Income (Loss) Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerShareNarrativeDetails" roleURI="http://www.roku.com/role/NetIncomeLossPerShareNarrativeDetails">
        <link:definition>9955582 - Disclosure - Net Income (Loss) Per Share - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformationNarrativeDetails" roleURI="http://www.roku.com/role/SegmentInformationNarrativeDetails">
        <link:definition>9955583 - Disclosure - Segment Information - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformationScheduleofCustomerAccountingfor10orMoreofSegmentRevenueDetails" roleURI="http://www.roku.com/role/SegmentInformationScheduleofCustomerAccountingfor10orMoreofSegmentRevenueDetails">
        <link:definition>9955584 - Disclosure - Segment Information - Schedule of Customer Accounting for 10% or More of Segment Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformationScheduleofLonglivedAssetsbyGeographicAreasDetails" roleURI="http://www.roku.com/role/SegmentInformationScheduleofLonglivedAssetsbyGeographicAreasDetails">
        <link:definition>9955585 - Disclosure - Segment Information - Schedule of Long-lived Assets by Geographic Areas (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RestructuringChargesRestructuringandRelatedCostsDetails" roleURI="http://www.roku.com/role/RestructuringChargesRestructuringandRelatedCostsDetails">
        <link:definition>9955586 - Disclosure - Restructuring Charges - Restructuring and Related Costs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RestructuringChargesRestructuringandRelatedCostsDetails_1" roleURI="http://www.roku.com/role/RestructuringChargesRestructuringandRelatedCostsDetails_1">
        <link:definition>9955586 - Disclosure - Restructuring Charges - Restructuring and Related Costs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RestructuringNarrativeDetails" roleURI="http://www.roku.com/role/RestructuringNarrativeDetails">
        <link:definition>9955587 - Disclosure - Restructuring - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RestructuringChargesReconciliationRestructuringandRelatedCostsDetails" roleURI="http://www.roku.com/role/RestructuringChargesReconciliationRestructuringandRelatedCostsDetails">
        <link:definition>9955588 - Disclosure - Restructuring Charges - Reconciliation Restructuring and Related Costs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="roku_ContentAssetsNetNoncurrent" abstract="false" name="ContentAssetsNetNoncurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_PlatformSegmentMember" abstract="true" name="PlatformSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_DeviceSegmentMember" abstract="true" name="DeviceSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_AdvertisingSegmentMember" abstract="true" name="AdvertisingSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_SubscriptionsSegmentMember" abstract="true" name="SubscriptionsSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_SubscriptionsMember" abstract="true" name="SubscriptionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_AmortizationExpenseAndWriteOffOfContentAssets" abstract="false" name="AmortizationExpenseAndWriteOffOfContentAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_IncreaseDecreaseInContentAssetsAndLiabilitiesNet" abstract="false" name="IncreaseDecreaseInContentAssetsAndLiabilitiesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_RepaymentOfConvertibleNoteInvestingActivities" abstract="false" name="RepaymentOfConvertibleNoteInvestingActivities" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_NoncashOrPartNoncashAcquisitionContingentConsideration" abstract="false" name="NoncashOrPartNoncashAcquisitionContingentConsideration" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_CapitalizedLicensedContentCostsAbstract" abstract="true" name="CapitalizedLicensedContentCostsAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_ContentAssetsTextBlock" abstract="false" name="ContentAssetsTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ShortTermInvestmentsPolicyPolicyTextBlock" abstract="false" name="ShortTermInvestmentsPolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ContentAssetsPolicyPolicyTextBlock" abstract="false" name="ContentAssetsPolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfValuationAllowanceForSalesReturnsTableTextBlock" abstract="false" name="ScheduleOfValuationAllowanceForSalesReturnsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfValuationAllowanceForSalesIncentivesTableTextBlock" abstract="false" name="ScheduleOfValuationAllowanceForSalesIncentivesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfValuationAllowanceForDoubtfulAccountsTableTextBlock" abstract="false" name="ScheduleOfValuationAllowanceForDoubtfulAccountsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfContentAssetsNetTableTextBlock" abstract="false" name="ScheduleOfContentAssetsNetTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfAmortizationOfContentAssetsIncludedInCostOfRevenueInConsolidatedStatementOfOperationTableTextBlock" abstract="false" name="ScheduleOfAmortizationOfContentAssetsIncludedInCostOfRevenueInConsolidatedStatementOfOperationTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfAmortizationExpenseForCapitalizedLicensedContentAssetsTableTextBlock" abstract="false" name="ScheduleOfAmortizationExpenseForCapitalizedLicensedContentAssetsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfSupplementalCashFlowInformationRelatedToLeasesTableTextBlock" abstract="false" name="ScheduleOfSupplementalCashFlowInformationRelatedToLeasesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock" abstract="false" name="ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_ScheduleOfSharesReservedForFuturesIssuanceTableTextBlock" abstract="false" name="ScheduleOfSharesReservedForFuturesIssuanceTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="roku_SummaryOfSignificantAccountingPoliciesTable" abstract="true" name="SummaryOfSignificantAccountingPoliciesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="roku_CustomerJMember" abstract="true" name="CustomerJMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_CustomerBMember" abstract="true" name="CustomerBMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_SummaryOfSignificantAccountingPoliciesLineItems" abstract="true" name="SummaryOfSignificantAccountingPoliciesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_InventoryProvisionRecovery" abstract="false" name="InventoryProvisionRecovery" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ImpairmentOfLicensedContentAssets" abstract="false" name="ImpairmentOfLicensedContentAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AllowancesForSalesReturnsMember" abstract="true" name="AllowancesForSalesReturnsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_AllowanceForSalesIncentivesMember" abstract="true" name="AllowanceForSalesIncentivesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_CustomerIMember" abstract="true" name="CustomerIMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_IncreaseDecreaseInContractWithCustomerLiabilityIncludingAcquisitionAndNonCashItems" abstract="false" name="IncreaseDecreaseInContractWithCustomerLiabilityIncludingAcquisitionAndNonCashItems" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ScheduleOfContractBalancesTable" abstract="true" name="ScheduleOfContractBalancesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="roku_ScheduleOfContractBalancesLineItems" abstract="true" name="ScheduleOfContractBalancesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_FrndlyTVInc.Member" abstract="true" name="FrndlyTVInc.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_BusinessCombinationContingentConsiderationLiabilityFairValue" abstract="false" name="BusinessCombinationContingentConsiderationLiabilityFairValue" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_BusinessCombinationContingentConsiderationLiabilityPeriodForRecognition" abstract="false" name="BusinessCombinationContingentConsiderationLiabilityPeriodForRecognition" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets" abstract="false" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_BusinessCombinationRecognizedLiabilityAssumedAccruedLiabilitiesCurrent" abstract="false" name="BusinessCombinationRecognizedLiabilityAssumedAccruedLiabilitiesCurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities" abstract="false" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AllowanceForOtherAccountsReceivableMember" abstract="true" name="AllowanceForOtherAccountsReceivableMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ComputerAndEquipmentMember" abstract="true" name="ComputerAndEquipmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_InternalUseSoftwareMember" abstract="true" name="InternalUseSoftwareMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_OfficeEquipmentAndFurnitureMember" abstract="true" name="OfficeEquipmentAndFurnitureMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_PaymentsDueToContentPublishersCurrent" abstract="false" name="PaymentsDueToContentPublishersCurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AccruedCostOfRevenueCurrent" abstract="false" name="AccruedCostOfRevenueCurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AccruedLegalAndLicensingFees" abstract="false" name="AccruedLegalAndLicensingFees" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ContentLiabilityCurrent" abstract="false" name="ContentLiabilityCurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ContentLiabilityNoncurrent" abstract="false" name="ContentLiabilityNoncurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_LicensedContentAssetsTable" abstract="true" name="LicensedContentAssetsTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="roku_ProducedContentReleasedLessAmortizationMember" abstract="true" name="ProducedContentReleasedLessAmortizationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ProducedContentCompletedNotReleasedMember" abstract="true" name="ProducedContentCompletedNotReleasedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ProducedContentInProductionMember" abstract="true" name="ProducedContentInProductionMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_TotalProducedContentMember" abstract="true" name="TotalProducedContentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_LicensedContentAssetsLineItems" abstract="true" name="LicensedContentAssetsLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_ContentAssetsNet" abstract="false" name="ContentAssetsNet" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_LicensedAndProducedPrepaidCurrentContentAssets" abstract="false" name="LicensedAndProducedPrepaidCurrentContentAssets" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_LicensedAndProducedPrepaidNonCurrentContentAssets" abstract="false" name="LicensedAndProducedPrepaidNonCurrentContentAssets" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AmortizationExpenseOfLicensedContentAssets" abstract="false" name="AmortizationExpenseOfLicensedContentAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AmortizationExpenseOfProducedContentAssets" abstract="false" name="AmortizationExpenseOfProducedContentAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_AmortizationExpenseOfContentAssets" abstract="false" name="AmortizationExpenseOfContentAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_WriteOffOfContentAssetUnamortizedCost" abstract="false" name="WriteOffOfContentAssetUnamortizedCost" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ProducedContentMember" abstract="true" name="ProducedContentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ContentAssetsExpectedAmortizationYearOne" abstract="false" name="ContentAssetsExpectedAmortizationYearOne" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ContentAssetsExpectedAmortizationYearTwo" abstract="false" name="ContentAssetsExpectedAmortizationYearTwo" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_ContentAssetsExpectedAmortizationYearThree" abstract="false" name="ContentAssetsExpectedAmortizationYearThree" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_Tranche1Member" abstract="true" name="Tranche1Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_Tranche2Member" abstract="true" name="Tranche2Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_Tranche3Member" abstract="true" name="Tranche3Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_Tranche4Member" abstract="true" name="Tranche4Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_NumberOfTranches" abstract="false" name="NumberOfTranches" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="roku_DebtSecuritiesAvailableForSalePromissoryNotesInvestment" abstract="false" name="DebtSecuritiesAvailableForSalePromissoryNotesInvestment" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetProceedsReceivedFromRepayment" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetProceedsReceivedFromRepayment" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_LeasesTable" abstract="true" name="LeasesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="roku_LeasesLineItems" abstract="true" name="LeasesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_RemainingLeaseTermOperatingLease" abstract="false" name="RemainingLeaseTermOperatingLease" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="roku_CommitmentRelatingToOperatingLeaseThatHaveNotYetCommenced" abstract="false" name="CommitmentRelatingToOperatingLeaseThatHaveNotYetCommenced" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_RightOfUseAssetsObtainedInExchangeForLeaseObligationsAbstract" abstract="true" name="RightOfUseAssetsObtainedInExchangeForLeaseObligationsAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_ExpectedTenantImprovementAllowance" abstract="false" name="ExpectedTenantImprovementAllowance" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_TermLoanAFacilityMember" abstract="true" name="TermLoanAFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_CreditAgreementMember" abstract="true" name="CreditAgreementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_LineOfCreditFacilityAdditionalBorrowingCapacity" abstract="false" name="LineOfCreditFacilityAdditionalBorrowingCapacity" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_NumberOfClassesOfCommonStock" abstract="false" name="NumberOfClassesOfCommonStock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="roku_CommonStockVotingRightsNumberOfVotesPerShare" abstract="false" name="CommonStockVotingRightsNumberOfVotesPerShare" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="roku_EquityIncentivePlanMember" abstract="true" name="EquityIncentivePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_TwoThousandSeventeenEmployeeStockPurchasePlanMember" abstract="true" name="TwoThousandSeventeenEmployeeStockPurchasePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_TwoThousandSeventeenEquityIncentivePlanMember" abstract="true" name="TwoThousandSeventeenEquityIncentivePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_CumulativeCommonStockAwardsGranted" abstract="false" name="CumulativeCommonStockAwardsGranted" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="roku_CumulativeCommonStockAwardsAvailableForIssuance" abstract="false" name="CumulativeCommonStockAwardsAvailableForIssuance" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="roku_TenPercentShareholderMember" abstract="true" name="TenPercentShareholderMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_PercentageOfVotingRights" abstract="false" name="PercentageOfVotingRights" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="roku_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantedInPeriodAtFairValue" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantedInPeriodAtFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_CommitmentsAndContingenciesTable" abstract="true" name="CommitmentsAndContingenciesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="roku_ContentMember" abstract="true" name="ContentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ManufacturingMember" abstract="true" name="ManufacturingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_OtherPurchaseCommitmentsMember" abstract="true" name="OtherPurchaseCommitmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_CommitmentsAndContingenciesLineItems" abstract="true" name="CommitmentsAndContingenciesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesAmount" abstract="false" name="EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsAmount" abstract="false" name="EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationProvisionToReturnTrueUp" abstract="false" name="EffectiveIncomeTaxRateReconciliationProvisionToReturnTrueUp" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefits" abstract="false" name="EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefits" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="roku_EffectiveIncomeTaxRateReconciliationDiscreteTaxBenefitRecognizedOnTransferOfIntellectualPropertyPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationDiscreteTaxBenefitRecognizedOnTransferOfIntellectualPropertyPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="roku_DeferredTaxAssetsLeaseObligation" abstract="false" name="DeferredTaxAssetsLeaseObligation" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_DeferredTaxAssetsSection174Capitalization" abstract="false" name="DeferredTaxAssetsSection174Capitalization" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_DeferredTaxLiabilitiesRightOfUseAsset" abstract="false" name="DeferredTaxLiabilitiesRightOfUseAsset" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_IncomeTaxesDisclosureTable" abstract="true" name="IncomeTaxesDisclosureTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="roku_IncomeTaxesDisclosureLineItems" abstract="true" name="IncomeTaxesDisclosureLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_TaxCutsAndJobsActIncomeTaxExpenseBenefit" abstract="false" name="TaxCutsAndJobsActIncomeTaxExpenseBenefit" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_UnrecognizedTaxBenefitsThatWouldImpactDeferredTaxAssetsAdjustments" abstract="false" name="UnrecognizedTaxBenefitsThatWouldImpactDeferredTaxAssetsAdjustments" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="roku_TaxDeferredSavingsPlanMember" abstract="true" name="TaxDeferredSavingsPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_DenmarkUKNetherlandsAndSouthKoreaEmployeesDefinedContributionPlanMember" abstract="true" name="DenmarkUKNetherlandsAndSouthKoreaEmployeesDefinedContributionPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_DeviceMember" abstract="true" name="DeviceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ContentDistributionArrangementsMember" abstract="true" name="ContentDistributionArrangementsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_PremiumSubscriptionsMember" abstract="true" name="PremiumSubscriptionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_OtherSubscriptionsServicesMember" abstract="true" name="OtherSubscriptionsServicesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_OtherCountriesMember" abstract="true" name="OtherCountriesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_ImpairmentChargesMember" abstract="true" name="ImpairmentChargesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="roku_RestructuringIncurredCostStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag" abstract="false" name="RestructuringIncurredCostStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="roku_OtherLongTermLiabilitiesAndAssetsAdjustment" abstract="false" name="OtherLongTermLiabilitiesAndAssetsAdjustment" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
</xs:schema>
