CastvideosfromChrometoRoku
Alsocheckout@dgreuel'sforkforabetterversionthatproperlyintrospectsxhrrequests,soshouldbeabletohandleawidervarietyofmediasources
ComprisedofamodifiedvGetextension
Creditstooriginalauthorsandmozillafoundationfortheirhardwork,withoutwhichthismodcouldnotbepossible
ThisbranchholdstheexperimentalversionwhichmakesuseofRoku'snativeremotevideoplayer(thesameoneinvokedwhenyouplayvideosthroughtheofficialrokumobileapp)toavoidhavingtoinstallaseparatecompanionchannelontheRoku.
Eventhoughitisexperimental,ithasbeentestedbyseveralpeopleandshouldworkfine.Thisbranchistheonemostpeopleshoulduse.
Insomeveryspecificcases,youmayneedtousetheversionwiththecompanionchannelthatcanbefoundintheproductionmasterbranch(theproductionbranchisnotbeingupdatedandshouldnotreallyusedsinceitlackssomenewfeatures(suchasslightlybettercompatibilityforvideos).Forinstance,ifyouneedtospoofuser-agentoftheRokuorwanttoaccessplayhistory,thecompanionchannelletsyoudothat.
Themasterbranchholdsaversionsimilartotheproductionbranchexceptitmaybemorebleeding-edgeandusesasideloadedversionofthecompanionchannelinsteadofhavingthecompanioninstalledasaprivatechannel.Usefulifyouuseaskynowtvorsimilarboxthatonlyallowssideloadedcustomchannels.
InstallationChromeExtension:
Firstdownloadthezipfileoftherepoandunzipitontothedesktop:
InChromenavigatetopreferences->extensionsandenable"developermode"byclickingontheupper-rightcheckbox.
Thenclick"LoadUnpackedExtension"andbrowsetothefoldercalledRokuCastintheunzippedarchive.
UsageOncetheChromeextensionhasbeeninstalled,youshouldseetheextensionappearinthecorner.
Beforeyouusetheextension,youwillhavetoentertheIPAddressforyourrokuintoit.
Insidetheextension,clickonthesettingscoginthelowerrighthandcornerandentertheIPaddressforyourrokuinthetextbox.YourRoku'sIPaddresscanbefoundinthenetworksectionofRoku'spreferences.
Onceinstalled,navigatetoanysitecontaininghtml5contentthissiteforexample,andclickonthecastbuttonintheomnibar.Youshouldseealistofallcastablecontent(choosethe.mp4—seenextsection),andanoptiontoeitherdownloadorcastit.Clickonthecastbutton,andthevideoshouldautomaticallystartplayingonyourroku.
Thankstoph0rnthere'salsoacontextmenuitemsoyoucanrightclickonvideolinksandcastfromtheretoo.
SupportedFormats/LimitationsTheextensionsupportsthesubsetofformatstherokucanplay(mp4andm3u8/HLSlivestreammainly).
Itwillworkonthemajorityofsitesusinganhtml5videoplayer(andinafewspecificcasesalsoworksonflashsites..worthtryingout).Notethatsomewebsiteswillonlyofferthecontentinanhtml5formattomobiledevices,soyoucouldtryspoofinguser-agent(installachromeextensiontodoso).
Ifyougetacouldn'tcastmessage,thingsworthtryingout:
Spoofuseragenttomobile(seepreviousparagraph).Somewebsiteshaveswitchedtoblobmethodofplaybackwhichdoesn'tembedthevideoURLdirectlyintheDOM,insteadhavingitpointtoalocalstorageobject.Switchingtomobileseemstoalleviatethis.NotethatYouTube(andmaybevimeo/dailymotion)isoneofthesitesthatdoesthat,soifyouwanttocastYouTubevideosusingthis,spoofyouruser-agent.OfcourseYouTubehasitsownappforRokuwithcastsupport,soyoucouldjustusethat.Ifthatdoesn'thelp,openanissueandI'lllookintoit.
Todo:AutomaticrokuIPdiscoveryusingSSDPClosedcaptioncastingConsiderusingchrome'sdevtoolresource/networkintrospectiontoidentifyURLsinflashplayersEnablingchromedevelopermodegivesmethatpopupeverytimeonstartup..howcanIremoveit?Unfortunatelydevmodeisnowrequiredinchrometosideload3rdpartyextensions.However,Ibelieveifaftersideloadingyouthenpackagetheextensiononyourcomputer(thussigningitlocally),Chromewillacceptit.
FolksonOSXdon'thavetoworryasmuchsinceChromeiskeptactiveevenifnowindowisopen.
Related:https://github.com/pranav-prakash/RokuCast/issues/10
Forfirefox?Firefoxhasitsowncastingthingthatthiswasmodelledoffof.Idon'tknowhowwellitworksorwhetheritcanextractvideosembeddedinstufflikejwplayer.
评论