资源说明:Create a test dev channel on a roku device
========== BEGIN HEADER ============================ Intent: Roku simple test for streaming video. Goal: Streaming Video Test dev git repo for Dr. Paul Gray, Jim O'Regan and Chris Trees to play with. DateStarted: 2012.06.11DateCreated: 2012.07.07 Resources: WEB: http://cat.roku.smarttv.kroftup.cat9.com/2012/07/07/catdevroku LOCAL: cat@catmac:/Users/cat/Sites/catdevroku LOCALWEB: http://catmac.local/~cat/catdevroku/READMECAT.php GITREPO: cat@cat9.com:/home/cat/repo/catdevroku.git GITCLONE: @ : # git clone ssh://cat@cat9.com:2222/~/repo/catdevroku.git GITREMOTE: @ : # git remote add origin ssh://cat@cat9.com:2222/~/repo/catdevroku.git Servers: https://gator1209.hostgator.com:2083/login/ - but only chris http://cat.roku.smarttv.kroftup.cat9.com/2012/07/07/catdevroku/README Documents: DOCINDEX: NONE yet... intend to use lls WEBEDIR: http://catmac.local/~cat/catdevroku/READMECAT.php TESTING DOCS: NONE ====================================================================================== <<<<<<<<<<<<<<<<< >>>>>STEP 1 - Backtrack the history <<<<<<<<<<<<<<<<< --I basically kind of jumped in to the Roku dev because I've wanted to play and I found the high-end xs on sale though Roku --The first Roku I got back in 20120328 stopped working before I had a chance to setup a dev app and the gang and I had been --talking about getting the streaming OTT stuff going... I had some time so took the plung (Apple TV dev stuff was non-existant --and I had played with WDTV already)... Anyway... so the history goes back to my notes. --HR1 - 20120611 - CATPEN0120120207p64 Ordered Roku XS - christrees@yahoo.com - cat/documents/CAT_9820_RokuPurchaseComfirmation --HR2 - 20120614 - Dr. Paul Gray shows me streaming video setup at office --HR3 - 20120615 - Setup and play with Roku dev env --HR4 - 20120617 - Publish Uncle Neil Video and played on Roku->cat9 channel --HR5 - 20120707 - Dr. Paul Gray and I meet and I put this document together so we can setup co-dev for OTT stuff we want to do. CATPEN0120120207p75 CATTRADE0120120213p51 --NOW... Detail links of reference I'll be pulling out of my web history. --Reference Links: --THE DEAL - http://www.roku.com/about/roku_coupons?utm_source=email&utm_medium=email&utm_campaign=email --My Roku History Link sign-in Roku | Sign in https://owner.roku.com/Login/?ReturnUrl=%2fDeveloper%2fDevHome Monday, June 11, 2012 --Developer Links https://owner.roku.com/Developer --Setting up Roku Dev on Eclipse http://rokudev.roku.com/rokudev/eclipsePluginGuide.pdf --MHL Roku http://www.macworld.com/article/1164620/roku_announces_streaming_stick_for_mhl_enabled_hdtvs.html --Basic app http://sdkdocs.roku.com/display/RokuSDKv43/Eclipse+Plugin+Guide --That's about it... so next I'll setup the git and take a snapshot at of the existing stuff --After that I'll walk through the dev thing I did and also how the Roku does the sideload stuff.. --I'm also going to set this up under lls so the cmake and doxygen start working... <<<<<<<<<<<<<<<<< >>>>>STEP 2 - Setup LOCAL git REPO <<<<<<<<<<<<<<<<< --Well... I started these notes when I am about to verify my Roku app and document that process. --I am using cataprojecttemplate as the base template and cleaning things up as I go --We want cat9 -> conCATenation 3x3 triangles --3 places: local working - cat9.com - graycloud gitlab when possible --3 people: me local - me cat9.com - paul catdevroku --HomePageURL: http://cattemplates.cat9.com/cataprojecttemplate/test.html --BUT this template is for private repos also so putting the private repo pattern. --Now setup the local working repo and push to cat9.com --CAT-Local catmac:Sites cat$ pwd /Users/cat/Sites catmac:Sites cat$ mkdir catdevroku catmac:Sites cat$ cp cataprojecttemplate/READMECAT.php catdevroku/ catmac:Sites cat$ cp cataprojecttemplate/README catdevroku/ catmac:Sites cat$ cd catdevroku/ catmac:catdevroku cat$ chmod 666 README --Clean up this README --GIT pattern git init git add . git commit -m "init this project" git remote add origin git@github.com:christrees/cataprojecttemplate.git git push -u origin master --Saving this now and preforming pattern --So I did the above catmac:Sites cat$ cd catdevroku/ catmac:catdevroku cat$ chmod 666 README catmac:catdevroku cat$ git init Initialized empty Git repository in /Users/cat/Sites/catdevroku/.git/ catmac:catdevroku cat$ git add . --Then setup cat9.com repo cat@cat9.com [~/repo]# mkdir catdevroku.git cat@cat9.com [~/repo]# cd catdevroku.git/ cat@cat9.com [~/repo/catdevroku.git]# git --bare init Initialized empty Git repository in /home/cat/repo/catdevroku.git/ cat@cat9.com [~/repo/catdevroku.git]# --Then did the commit and push catmac:catdevroku cat$ git remote add private cat@cat9.com:repo/catdevroku.git catmac:catdevroku cat$ git commit -m "Initial catdevroku commit and private push" --took out all the commit messages catmac:catdevroku cat$ git push private master Counting objects: 134, done. Delta compression using up to 2 threads. Compressing objects: 100% (113/113), done. Writing objects: 100% (134/134), 691.66 KiB, done. Total 134 (delta 15), reused 0 (delta 0) To cat@cat9.com:repo/catdevroku.git * [new branch] master -> master catmac:catdevroku cat$ --I call the cat@cat9.com "private" and not "origin"... "origin" is the normal git term to use. --Now lets pull the repo into the public space --We want to setup the domain and site --http://cat.roku.smarttv.kroft.cat9.com/2012/07/07/catdevroku --SO it's off to the DNS entry to create cat.roku.smarttv.kroftup.cat9.com --https://gator1209.hostgator.com:2083/ cat@cat9.com [~/repo/catdevroku.git]# cd ~/public_html/cat.roku.smarttv.kroftup/cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup]# mkdir 2012 cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup]# cd 2012 cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012]# mkdir 07 cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012]# cd 07 cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07]# mkdir 07 cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07]# cd 07/ cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07]# git clone /home/cat/repo/catdevroku.git/ Cloning into 'catdevroku'... done. cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07]# ls ./ ../ catdevroku/ cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07]# --Now test.... --http://cat.roku.smarttv.kroftup.cat9.com/2012/07/07/catdevroku/README --THAT WORKS... now put some auth on for now... --cat - time2invest paul - time2invest jim - time2invest under main domain --Send email to paul with the link. --OK... now I'm going to save and commit this but not push --The next thing is to go verify I can still build and change the roku app and document that. <<<<<<<<<<<<<<<<< >>>>>STEP 2 - Verify dev of cat9 roku channel playing uncle neil <<<<<<<<<<<<<<<<< --OK... I'm going to go through messing with the RoKu source changing something and testing. --First... I pulled in the Eclipse dev env... see here: --http://rokudev.roku.com/rokudev/eclipsePluginGuide.pdf --Next fire up eclipse as I moved some crap around... --The eclipse workspace is abit tricky and I'm not sure how it works yet or how it pollutes but... --File->New->Other : BrightScript ProjectName: CATTestRokuSimple Dir: /Users/cat/Sites/catdevroku/CATTestRokuSimple --OK... that created the project --Open sources/appMain.brs --You see some of the basic stuff... as on http://rokudev.roku.com/rokudev/eclipsePluginGuide.pdf page 8 --http://rokudev.roku.com/rokudev/eclipsePluginGuide.pdf page 9 tells you how to export to --File->Export --But I didn't recompile yet... just going to add the old zip --Go to your Roku box mine is at http://10.0.1.13/ --Developer mode http://sdkdocs.roku.com/display/RokuSDKv43/Developer+Guide#DeveloperGuide-71EnablingDevelopmentModeonyourbox --http://sdkdocs.roku.com/display/RokuSDKv43/Developer+Guide --Click Installer --Click Choose File --Browse to the zip catmac:out cat$ pwd /Users/cat/Sites/catdevroku/CATTestRokuSimple/out catmac:out cat$ ls CATTestRokuSimple.zip catmac:out cat$ --Click Install --You should see my Roku channel --Lets commit this --SAVE THIS README --SAVE this and push to cat9.com catmac:catdevroku cat$ git add . catmac:catdevroku cat$ git commit -m "Just setting up and walking through Roku Dev ENV" catmac:catdevroku cat$ git push private master cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07/catdevroku]# git fetch cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07/catdevroku]# git reset --hard HEAD cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07/catdevroku]# git merge private/master cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07/catdevroku]# git checkout remotes/private/ --WELL.. I messed up the git... cat@cat9.com [~/public_html/cat.roku.smarttv.kroftup/2012/07/07/catdevroku]# git pull --All is fine when I do git pull the other stuff was when I was using that site as an aux users and just wanting to reset to the repo --OK... back to the Roku... we are ALMOST to the point where I left the stuff. --So look at line 179 in appMain.brs --That's the connection URL to play a file --I have not looked at the 'live stream' as offically I don't think RoKu does LIVE stream... it has some sort of buffer thing --Anyway... walking through the code... --Look at line 16 - 29 in appMain.brs that is basically the menu --File->Export: BrightScript Deployment -> Next -> Install on Roku Box
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。