"renojim" wrote:
"bpwwer" wrote:
I spent a lot of time ripping the client code apart, separating it into multiple files and consolidating common code into functions.
I'd love to rewrite the client code from scratch, but I sincerely doubt I'll ever find the time to do that. However, to be honest, I've never liked the idea, or seen the benefit, of having a million files for one project. I waste more time switching between files and trying to remember which file holds the function I'm interested in. I know the way I do things isn't considered good practice, but it works for me.
-JT
I certainly wasn't trying to dis the code. I'm very grateful that it exist and is available in source form so that it can be modified. My re-organization made it easier for me to understand and modify. And it's not a million files
🙂 I've posted just the client source here:
http://www.bobshome.net/Roku/MyMedia/ in case it is of any use to anyone else. I didn't make any changes to the server code at all (I think I'm using the 2.0 beta) so this should build and run with an existing server setup. The differences in this version:
- Accepts a launch parameter with a playlist feed URL. It will jump to the playlist code and start playing from the URL when launched.
- Added support for the ECP input command so that new feed URL's can be sent at runtime. Only tested with playlist feed URLs.
- A new settings screen that looks and acts more like the standard Roku setting screen. I did this to add a new setting and before I realized that there's an existing screen type for this.
- A new setting for shuffle default.
- Removed the shuffle posters
- Added an option to the springboard screens to turn shuffle on/off interactively.
I did try some movies and photos and they worked, but my main goal was to use this for music playback so there's a high probability that I broke something in those.
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]