Your Digital Media Has Never Looked So Good

Search found 8 matches

by NND
Fri Dec 07, 2018 9:48 pm
Forum: Roku Developer Program
Topic: New code linting tool for BrightScript
Replies: 4
Views: 650

Re: New code linting tool for BrightScript

It is nice to have choices for BrightScript parsing for sure. Three years ago my only option was to create my own tools. I looked at RokuRoad's parser and while it is pretty solid it did fail on few of my samples. For example it fails on `foo()()`. Also on code with conditional compilation like this...
by NND
Fri Dec 07, 2018 1:56 am
Forum: Roku Developer Program
Topic: New code linting tool for BrightScript
Replies: 4
Views: 650

Re: New code linting tool for BrightScript

You can add some of the rules you've mentioned relatively easily. Unfortunately I don't have time to spend adding bunch of the new rules, but I would take a PR with new rules.
I am not sure how eslint supposed to help considering that JavaScript and BrightScript have different syntax?
by NND
Wed Nov 21, 2018 4:18 pm
Forum: Roku Developer Program
Topic: New code linting tool for BrightScript
Replies: 4
Views: 650

New code linting tool for BrightScript

If you are interested in improving your coding style and consistency and maybe catching a bug or two check out BrsLint. BrsLint is a tool that parses brightscript and checks code against predefined rules. It also performs static analysts to identify situations that can cause runtime errors, like acc...
by NND
Wed Jan 25, 2017 3:57 pm
Forum: Roku Developer Program
Topic: Scenegraph blackscreen
Replies: 7
Views: 633

Re: Scenegraph blackscreen

One thing to consider is that once you create first RSG scene Roku starts process of "compiling" all files in the components directory. Depending o how many components you have it could take a second on faster device or a few seconds on slower devices.
by NND
Wed Nov 16, 2016 11:42 am
Forum: Roku Developer Program
Topic: Brightscript Sub and Function Routine
Replies: 18
Views: 1551

Re: Brightscript Sub and Function Routine

You can declare sub with return value and use it as a function. One real difference is the one mentioned by EnTerr, no anonymous subs.
by NND
Tue Nov 08, 2016 4:44 pm
Forum: Roku Developer Program
Topic: number of viewers query
Replies: 26
Views: 1881

Re: number of viewers query

It is not clear what problem exactly you're trying to solve. Do you have problem with screen to collect number of viewers? Or is it submitting form to your website? Or something else? If you state your problem more narrowly it will be easier to help you. But in general I don't see any reason why you...
by NND
Tue Nov 08, 2016 3:23 pm
Forum: Roku Developer Program
Topic: Ad markers on scene graph video
Replies: 1
Views: 416

Re: Ad markers on scene graph video

You can draw your markers on top of Roku's own progress bar. Get dimensions for `trickPlayBar` from Video node.
by NND
Tue Nov 08, 2016 3:12 pm
Forum: Roku Developer Program
Topic: Lightweight deployment script for Windows
Replies: 2
Views: 630

Re: Lightweight deployment script for Windows

If you have W10 you can enable Bash on Windows. Very handy.
For myself I've made nodejs script to handle deployment. It isn't small but it does handle more complex deployment scenarios.