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: 
EnTerr
Roku Guru

Can one haz BSC / NDK hybrid?

Is it possible to write a channel of dual-nature: combination of BrightScript and non-BS code?

So that for example it can run 3D animation whistles&bells in Marma-laid on models where GLES is available - but pare down functionality (with conditional check) to BSc-only on models that don't?
0 Kudos
4 REPLIES 4
RokuJoel
Binge Watcher

Re: Can one haz BSC / NDK hybrid?

I believe this is possible. For example you could have a Brightscript channel that calls an NDK video playback function for playing video from your special DRM solution that we aren't going to build into the platform. The caveat is that jumping from Brightscript > NDK and back is slow.

NDK channels all launch from Brightscript in the first place.


- Joel
0 Kudos
RokuMarkn
Visitor

Re: Can one haz BSC / NDK hybrid?

It would probably be simpler to have a separate version of the channel for the different platforms. I think this is possible. NDK apps need to be compiled for each platform separately anyway.

--Mark
0 Kudos
EnTerr
Roku Guru

Re: Can one haz BSC / NDK hybrid?

Thank you RokuJoel, RokuMarkN!

Yeah, i saw roNDK.start(...), hence suspected it is doable. So i gather there might be alternative (possibly manu-matic) way, to assign different executables for different platforms. Funny i did not even think of that, native being different on different players - so used i am with BrSc giving reasonably "write once, run everywhere".

I like to scout ahead as not to get myself into a swamp*. And currently i am scratching my head, since there are 3 major segments of Roku players in the wild:
  1. firmware 3, model# < 2200

  2. no OpenGL, models 2450 .. 27xx

  3. OpenGLES, everything else

Do you guys have any stats that you can share with us - of what the % breakdown between these is in the wild? Preferably from players still in use - but even if based on total sales figures, that's fine too. Rough break down. Any bone you can throw. Anything is better than nothing. :idea:


(*) Last time i blindly trusted something was this June, when i saw that GetChildNodes() has been added to roXML in April. And for not sticking to Lenin/Reagan's favorite proverb "Trust but verify", i got burned in August when started testing my code on fw3. Yeah, i am still bitter melon over it, sorry. The power of documentation... it should be written by someone with attention to detail.
0 Kudos
EnTerr
Roku Guru

Re: Can one haz BSC / NDK hybrid?

Roku* -
can you shed some light on the % of players with OpenGL(ES) vs those that do not have it?
See above.
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.