Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ProbCaboose
Visitor

C# .NET and Java External Control Library

"ProbCaboose" wrote:
C#
Main Page: http://adf.ly/413265/rokunet
Source of DLL: http://adf.ly/1IQUR
Source of Remote Example: http://adf.ly/1IQXc
These sources are under the GPL v3, Copyright (C) 2010 John Parks.

Java:
I have finished the Android Java port of Roku .NET, and have built a test app for Android, my fist EVER!, Yay Me.
Test App (Signed): http://adf.ly/1IQYj
RokuExternalControl JAR: http://adf.ly/1IQZE
Java info further down.

P.S. I would love to hear more feedback from people who are using this library and application.



Over the past few days I've been working on a C# .NET Library for External Control on a Roku device. After searching the internet and noticing there was not a single libraty out that did this, I wondered if anyone would be interested in this? Let me know and I'll upload it somewhere and post a link to the source;
Here's a program i wrote that uses the library I wrote.

I can post the source for it too if anyone wants. The textbox does send letters to the roku, but will only show on the roku if there is a place to enter text. There is one annoying bug so far, only with netflix, on the main gridview of netflix the arrow keys do not get processed properly, but on every other app they work fine, still trying to figure out whats happening.
"If I had a nickel for every time I was wrong, I'd be broke." Stephen Colbert
0 Kudos
20 REPLIES 20
cola007
Visitor

Re: C# .NET External Control Library - Anyone interested?

I'm certainly interested! It's been ages since I've done any programming in C (or any of the variants) but I'd love to take a look around the source code for kicks.

Thanks!
Jeff
0 Kudos
ProbCaboose
Visitor

Re: C# .NET External Control Library - Anyone interested?

Source of DLL: http://sourceforge.net/projects/roku-net/files/Source/Roku%20.NET.zip/download
Source of Remote Example: http://sourceforge.net/projects/roku-net/files/Samples/Roku%20Remote.zip/download
These sources are under the GPL v3, Copyright (C) 2010 John Parks.

The Sample Roku Remote includes a hack for the arrow keys to work properly on netflix's gridview, a keydown command, a wait of 100ms, a keyup command, and another wait of 100ms are sent to the Roku instead of a keypress. Roku .NET covers all items under the External Control PDF except for SSPD Network Discovery, for it has yet to be implemented. If any changes are made to ether source that improve it, I please ask that I can be sent a copy of it so it can be shared further.
- John

P.S. Let me know what you think of it. If this is well like I may port it to java for android. 🙂
"If I had a nickel for every time I was wrong, I'd be broke." Stephen Colbert
0 Kudos
cola007
Visitor

Re: C# .NET External Control Library - Anyone interested?

Thank you for posting. After I looked through the code I realized I've really lost touch with C programming. I haven't had a whole lot of time to play with the app yet but I intend to within the next week and I'll be sure to provide some feedback for you.

If you do decide to port the app over to Android you may want to consider using something like PhoneGap (not sure whether you're already familiar with it) to make a cross platform version (compatible with BlackBerry OS, IOS, Android, webOS, etc).
0 Kudos
ProbCaboose
Visitor

Re: C# .NET External Control Library - Anyone interested?

Hey Jeff, thanks for the heads up on PhoneGap, I'll look into it. Although it may take a few weeks for the port as I touch-up on my java. :?
And Happy Holidays to all Developers and Roku Staff.
"If I had a nickel for every time I was wrong, I'd be broke." Stephen Colbert
0 Kudos
deckarep
Visitor

Re: C# .NET External Control Library - Anyone interested?

Hey, I just downloaded the project from sourceforge but I notice it references a .dll in which the source is not available. Is that .dll something you also created or it something that the Roku company provided? I'm just curious because I'd like to see how the actual calls to the device work.

Looks good...I'll see if I can get it working and contribute something. BTW, is it possible to get the source code on github.com since github.com is the easiest and best way to share code and have contributions made? I think you'd get a lot more contributors that way. Just a suggestion!

Happy Holidays,

-Ralph
0 Kudos
ProbCaboose
Visitor

Re: C# .NET External Control Library - Anyone interested?

"deckarep" wrote:
I notice it references a .dll in which the source is not available. Is that .dll something you also created or it something that the Roku company provided?

What DLL are you referring to? The only DLLs needed for the 'Roku Remote' project are the Microsoft base DLLs included in windows, and two DLLs included in the folder inside 'Roku Remote.zip', 'DMW API.dll' and 'Roku .NET.dll', both created by myself. 🙂
And I'll try to get this up on github tomorrow. //EDIT: I won't be placing this on github because i can't figure out how to use it. To confusing. :?
- John
"If I had a nickel for every time I was wrong, I'd be broke." Stephen Colbert
0 Kudos
ProbCaboose
Visitor

Re: C# .NET External Control Library - Anyone interested?

Updated 'Roku .NET' and 'Roku Remote'.
"If I had a nickel for every time I was wrong, I'd be broke." Stephen Colbert
0 Kudos
cola007
Visitor

Re: C# .NET External Control Library - Anyone interested?

Finally had a chance to try it out and so far the remote is working pretty well.

I'll let you know if I come across any bugs or odd behavior.

Thanks again for posting this!
0 Kudos
ProbCaboose
Visitor

Re: C# .NET External Control Library - Anyone interested?

I have started relearning Java and porting Roku .NET. So far, after half a day of working on it, I have basic functions of sending Buttons and Lits. So it's going well so far, just need to learn how to load web images. 😉
"If I had a nickel for every time I was wrong, I'd be broke." Stephen Colbert
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.