Your Digital Media Has Never Looked So Good

 
brocker
Topic Author
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Roku Developers - Seattle?

Mon May 16, 2011 8:06 pm

Hey all,

Are there any Roku developers in the greater Seattle area who might be willing to do some paid training sessions? This learning curve is killing me, and I have so many questions (prob simple) that require one on one interaction. Thinking there might be someone who is up to some teaching?

Thanks
Bud
 
RyanMarquiste
Posts: 61
Joined: Sat Apr 23, 2011 6:26 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 7:40 am

I'm not in the Seattle area currently, but I may be within the next few months. I may be able to help out if the timeline isn't urgent.

What type of project is it?

Ryan
 
brocker
Topic Author
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 9:49 am

Hi Ryan,

Thanks for the reply. Unfortunately the timeline is shorter than that, but it could change depending on our Sprint backlog. When you get to Seattle, if you could let me know, that would be great!!

Best
Bud
 
jbrave
Posts: 716
Joined: Mon Mar 22, 2010 3:00 pm
Location: Ben Lomond, CA
Contact:

Re: Roku Developers - Seattle?

Tue May 17, 2011 11:09 am

Just post your questions here, people will help you, you can learn everything without one-on-one teaching, even though that might be preferable. What are the problems you are encountering?

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
 
jseigle85
Posts: 32
Joined: Tue Apr 26, 2011 8:02 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 11:37 am

You can get online one on one training. Go to Roku Tube (http://rokutube.com) and click on ask a question and those guys will post video tutorial on every question you have. This training is free, but they are willing to take donations
 
brocker
Topic Author
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 11:40 am

Yeah, I've been posting questions, but I'm so lost I would fill up the board and annoy everyone to the point I suspect they'd say, "Oh that, guy again, ignore him". I've posted a couple topics on my frustration with the learning curve as it's straight up for me. I know there are demo projects, and documents, but the demos aren't commented very well (and in some cases not at all) so trying to understand what something does is extremely frustrating.

Also, for example, in the BrightScript 3.0 reference, on page 17, it's trying to show you how to read from an XML file. There is a line given as an example that is "? rsp.photos.photo". But when I copy the code into a test project, it fails with error "'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in ...QgrV/pkg:/source/XML_Demo.brs(14)" which is that line. I don't know what the question mark "?" is as it's the cause of the error. Is that a typo?

Later on the same page there is the line "Print booklist.book.gettext()". Well what is "booklist"??? Where was that declared and where did it come from?? Is there an assumption being made that it was declared same as "rsp" earlier in the sample code? This line also fails.

As you can see, this is simple simple stuff that would just most likely annoy the heck out of everyone if I were to post something this basic continually (although it's a legitimate question to me), and I don't want to burn my bridges by doing so. I just figured that having someone to ask immediately would be 100% faster and less spammy than the forums.

Signed
Clueless in Seattle :(
 
brocker
Topic Author
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 11:42 am

jseigle85 wrote:
You can get online one on one training. Go to Roku Tube (http://rokutube.com) and click on ask a question and those guys will post video tutorial on every question you have. This training is free, but they are willing to take donations

Thanks, I saw that yesterday, but there isn't any content there. I was hoping for "how to" videos, but the only one is about how to use the site which was kinda strange.
 
User avatar
gonzotek
** Valued Community Member **
Posts: 2206
Joined: Thu May 06, 2010 12:40 pm
Contact:

Re: Roku Developers - Seattle?

Tue May 17, 2011 12:36 pm

brocker wrote:
Yeah, I've been posting questions, but I'm so lost I would fill up the board and annoy everyone to the point I suspect they'd say, "Oh that, guy again, ignore him". I've posted a couple topics on my frustration with the learning curve as it's straight up for me. I know there are demo projects, and documents, but the demos aren't commented very well (and in some cases not at all) so trying to understand what something does is extremely frustrating.

Also, for example, in the BrightScript 3.0 reference, on page 17, it's trying to show you how to read from an XML file. There is a line given as an example that is "? rsp.photos.photo". But when I copy the code into a test project, it fails with error "'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in ...QgrV/pkg:/source/XML_Demo.brs(14)" which is that line. I don't know what the question mark "?" is as it's the cause of the error. Is that a typo?

Later on the same page there is the line "Print booklist.book.gettext()". Well what is "booklist"??? Where was that declared and where did it come from?? Is there an assumption being made that it was declared same as "rsp" earlier in the sample code? This line also fails.

As you can see, this is simple simple stuff that would just most likely annoy the heck out of everyone if I were to post something this basic continually (although it's a legitimate question to me), and I don't want to burn my bridges by doing so. I just figured that having someone to ask immediately would be 100% faster and less spammy than the forums.

Signed
Clueless in Seattle :(
? is a synonym for the debugger 'print' command, (see page 67 for more debugger commands). I believe it is only available in the debugger. Use 'print' from within your code to send data to the debugger output.



The text on page 17, just above "Print booklist.book.gettext()" says: "For example, if the variable booklist contains this roXMLElement:"
<booklist>
<book lang=eng>The Dawn of Man</book>
</booklist>
So this suggests that you should create a new variable, booklist = "CreateObject("roXMLElement")" then .parse some xml into it (in this case, the xml data in the code above). Then the "Print booklist.book.gettext()" line should work. Right now, I'm looking at the file mediarsstoolkit.brs from the deviantart example source, and the specific function GetPhotoListFromFeed, all from the 3.0 beta sdk, for an example of how to use roXMLElement.

I don't consider these questions silly, or ones that should be completely obvious, so don't worry about annoying anyone. :) Just ask away.
Last edited by gonzotek on Tue May 17, 2011 12:39 pm, edited 1 time in total.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
 
kbenson
Posts: 889
Joined: Fri Apr 09, 2010 9:53 am
Location: Santa Rosa, Ca

Re: Roku Developers - Seattle?

Tue May 17, 2011 12:39 pm

brocker wrote:
Also, for example, in the BrightScript 3.0 reference, on page 17, it's trying to show you how to read from an XML file. There is a line given as an example that is "? rsp.photos.photo". But when I copy the code into a test project, it fails with error "'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in ...QgrV/pkg:/source/XML_Demo.brs(14)" which is that line. I don't know what the question mark "?" is as it's the cause of the error. Is that a typo?


? is an alias for print, so the two following statements are equivalent:
? "this is a string that will be printed"
print "this is a string that will be printed"


As for the XML error, XML allows for accessing sub-elements through the dot syntax, as long as it exists. This is dependent on the actual XML parsed. I suspect that the XML provided didn't include a photos elelement with a photo element within it, or there was some different in the location of the elements within the passed XML.

The best way to get help on something is generally to create a new post with a specific question or problem, and post the example code needed to replicate the error. Additionally, clueing us in on any prior programming experience will allow us to relate concepts in BrightScript to concepts that may be more familiar (but with a different syntax or use) in a language you are familiar with, which can go a long way towards helping your understanding.
-- GandK Labs
Check out Reversi! in the channel store!
 
jbrave
Posts: 716
Joined: Mon Mar 22, 2010 3:00 pm
Location: Ben Lomond, CA
Contact:

Re: Roku Developers - Seattle?

Tue May 17, 2011 2:06 pm

Also, few here will be annoyed at being asked simple questions, everybody starts somewhere.

I would suggest that trying to decipher the examples is not a good place to start, unless you have advanced programming skills from other languages.

What is the nature of the project you are trying to create? Then we can make suggestions on where to start and offer simple sample code. The examples present complex ways of doing things that are not necessary, but can be very useful once you are far along with developing roku apps.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
 
brocker
Topic Author
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 2:35 pm

Thanks everyone,

So Joel, the project is one that I think should be fairly straight forward. Basically we have videos as BrightCove, and a database running in the cloud. Here are the steps we are hoping to achieve:

1. User opens our Channel from store
2. Roku reads from registry to get user information
______2.a. This would be information saved on initial login where they would enter a email address from a login screen.
3. Roku calls a web service passing email address
4. A customized XML will be returned to Roku to populate Poster Screen

Any thoughts of where to start building?

Thanks
Bud
 
jbrave
Posts: 716
Joined: Mon Mar 22, 2010 3:00 pm
Location: Ben Lomond, CA
Contact:

Re: Roku Developers - Seattle?

Tue May 17, 2011 4:10 pm

Well, the simple approach:

First create an roURLTransfer object to get the xml, and a few other items to process it:

sub main()
xfer=createobject("rourltransfer")
xml=createobject("roXMLElement")
xfer.seturl("http://brightcove.com/urlforXMLyouWantToGet")
xmlxfer=xfer.gettostring()


Ok, so now you have your data transfered to a string called xmlxfer. Now you want to parse it and simultaneously check that it is readable:
if xml.parse(xmlxfer) then


so if your XML looks like this for example:
<videos>
           <video>
                  <vid_title>myvid</title>
                  <url>http://video.url</url>
                   <img>http://video.thumbnail.url</img>
          </video>
           <video>
                  <vid_title>myvid</title>
                  <url>http://video.url</url.
                  <img>http://video.thumbnail.url</img>
          </video>
</videos>


then your code might look like this:
if xml.parse(xmlxfer) then
posterarray=createobject("roarray",1,true)
for each v in xml.videos.video        '(I could be wrong about this, it might be xml.video, but I'm writing off the top of my head)
     poster=createobject("RoAssociativeArray")
     poster.shortdescriptionline1=v.getnamedElements("vid_title").GetText()
     poster.HDposterURL=v.getnamedElements("img").gettext()
     poster.SDposterURL=v.getnamedElements("img").gettext()
     poster.vidurl=v..getnamedelements("url").gettext()
     posterarray.push(poster
next
end if


Next step create and display poster screen:
posterscrn=createobject("roposterscreen")
posterscrn.setccontentlist(posterarray)
posterscrn.show()



Now you need a message loop to wait for message. First create a port, then assign the message port to the screen (really, assign the screen to the port)

port=createobject("romessageport")
posterscrn.setmessageport(port)
while true
msg=wait(0,port)
if type(msg)="roPosterScreenEvent" then
     if msg.islistitemselected() then
          ndx=msg.getindex() 'the index of the selected poster
         'here is where you would put the code to do whatever it is you want to do with the poster, usually call a function to play the video
     end if
end if
end while
Last edited by jbrave on Tue May 17, 2011 5:02 pm, edited 1 time in total.
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
 
brocker
Topic Author
Posts: 82
Joined: Fri Mar 25, 2011 4:17 pm

Re: Roku Developers - Seattle?

Tue May 17, 2011 4:17 pm

Man!! This is great, thanks! I'm building a test harness project now to go through your example.

I'll be in touch with any questions, this is great!

Best
Bud
 
kbenson
Posts: 889
Joined: Fri Apr 09, 2010 9:53 am
Location: Santa Rosa, Ca

Re: Roku Developers - Seattle?

Tue May 17, 2011 4:19 pm

-- GandK Labs
Check out Reversi! in the channel store!
 
RyanMarquiste
Posts: 61
Joined: Sat Apr 23, 2011 6:26 pm

Re: Roku Developers - Seattle?

Wed May 18, 2011 4:43 pm

You'll get great support from other developers just by asking your questions here. I should have mentioned that first, but was in a bit of a rush out the door when I made my last post to this thread.

It looks like you've gotten most of your answers right now, but feel free to come back with more questions if you run into problems.

I'll let you know when I'm in the Seattle area. It would be cool to 'talk shop' with someone face to face.

Who is online

Users browsing this forum: No registered users and 3 guests