Your Digital Media Has Never Looked So Good

Search found 57 matches

by malort
Wed Apr 26, 2017 11:19 am
Forum: Roku Developer Program
Topic: Performance of creating ContentNode v. roArray/roAA
Replies: 8
Views: 993

Re: Performance of creating ContentNode v. roArray/roAA

Ah, there you go :)  the parameter and structure of it was the missing part - not sure how I missed the docs link on that, oops. Interesting feature.
by malort
Wed Apr 26, 2017 10:31 am
Forum: Roku Developer Program
Topic: Performance of creating ContentNode v. roArray/roAA
Replies: 8
Views: 993

Re: Performance of creating ContentNode v. roArray/roAA

There is a new API in 7.6 that I'm hopeful will address this:  ifSGNodeField.update .  In my experience, anything that can be done natively (vs. in BRS code) is a huge performance boost.  ifSGNodeField.update should be able to take ParseJSON output and convert it into a node tree in one call. Yeah,...
by malort
Tue Apr 25, 2017 4:34 pm
Forum: Roku Developer Program
Topic: Performance of creating ContentNode v. roArray/roAA
Replies: 8
Views: 993

Re: Copy of Brightscript object being created when using assignment operator.

I wonder if Roku is aware of this performance, and if this is going to be optimized in the future. No matter how you look at it, if you need to pass a lot of arbitrary data around, it's either going to be a bit slow to create the roSGNodes to use as a reference, or you end up running into performan...
by malort
Tue Apr 25, 2017 10:24 am
Forum: Roku Developer Program
Topic: Performance of creating ContentNode v. roArray/roAA
Replies: 8
Views: 993

Performance of creating ContentNode v. roArray/roAA

One thing to be cautious of is the performance of creating many nodes/contentNodes as they are quite a bit slower than the standard roArray/roAssociativeArray. See the example below This is the time it took to create 2000 objects of each type. CreateObject("roSGNode", "LargeContentNod...
by malort
Fri Apr 14, 2017 11:58 am
Forum: Roku Developer Program
Topic: RAF 2.0: Native integration of ads in RSG apps
Replies: 12
Views: 1703

Re: RAF 2.0: Native integration of ads in RSG apps

diff --git a/components/Player.brs b/components/Player.brs index e1eb65e..2a22701 100644 --- a/components/Player.brs +++ b/components/Player.brs @@ -9,7 +9,7 @@  ' Player  sub init() -    m.video = m.top.CreateChild("Video") +    m.video = m.top.findNode("VideoNode")  end sub  s...
by malort
Fri Apr 14, 2017 10:53 am
Forum: Roku Developer Program
Topic: RAF 2.0: Native integration of ads in RSG apps
Replies: 12
Views: 1703

Re: RAF 2.0: Native integration of ads in RSG apps

Is it possible to play the ads in a smaller window. e.g. we'd have a video node playing content while the user can browse the UI. This works, however once we plug RAF into the mix, it will play the add full screen. We tested using the sample you've provided and it functions the same way. You can se...
by malort
Fri Apr 14, 2017 10:39 am
Forum: Roku Developer Program
Topic: RAF 2.0: Native integration of ads in RSG apps
Replies: 12
Views: 1703

Re: RAF 2.0: Native integration of ads in RSG apps

Is it possible to play the ads in a smaller window. e.g. we'd have a video node playing content while the user can browse the UI. This works, however once we plug RAF into the mix, it will play the add full screen. We tested using the sample you've provided and it functions the same way. You can set...
by malort
Mon Mar 28, 2016 4:32 pm
Forum: Roku Developer Program
Topic: Disable SSL verification for roVideoPlayer and roVideoScreen
Replies: 4
Views: 983

Re: Disable SSL verification for roVideoPlayer and roVideoSc

It would be nice if `EnableHostVerification` was exposed to the roVideoPlayer. We've been trying to isolate possible DNS issues and hoped to bypass the host verification in the roVideoPlayer. I assume this is still not an option?
by malort
Sat Mar 12, 2016 11:20 am
Forum: Roku Developer Program
Topic: roScreen on Roku 3 locked to 20 fps
Replies: 10
Views: 1293

Re: roScreen on Roku 3 locked to 20 fps

So I just switched from using wait() to using roMessagePort.getMessage() but it seems that getMessage() never returns roSocket events. I though that doing getMessage() was the same thing as wait(1, port) but faster, is this not the case? We noticed that too for events for `roStreamSocket`, but not ...
by malort
Mon Feb 15, 2016 1:32 pm
Forum: Roku Developer Program
Topic: roVideoPlayer 4k content (SetMaxVideoDecodeResolution)
Replies: 4
Views: 670

Re: roVideoPlayer 4k content (SetMaxVideoDecodeResolution)

In my experience, you should only ever need to use SetMaxVideoDecodeResolution on the older Roku 2 XD/XS models. I've never run into memory issues on the other platforms that have required making that call. It is also my understanding that calling it only affects the amount of memory being reserved...
by malort
Mon Feb 15, 2016 12:54 pm
Forum: Roku Developer Program
Topic: roVideoPlayer 4k content (SetMaxVideoDecodeResolution)
Replies: 4
Views: 670

roVideoPlayer 4k content (SetMaxVideoDecodeResolution)

Anyone using the roVideoPlayer is aware that using SetMaxVideoDecodeResolution may help reserve memory, but the question is what it actually does. When set, does it actually down-scale the media to the specified resolution? The main question is how is 4k affected? The docs state "Video decode m...
by malort
Tue Dec 15, 2015 12:45 pm
Forum: Roku Developer Program
Topic: API to switch audio track
Replies: 1
Views: 983

Re: API to switch audio track

I have the same question, for HLS and other containers like MKV.
by malort
Mon Dec 14, 2015 3:52 pm
Forum: Roku Developer Program
Topic: roCaptionRenderer: Videoplayer & mkv with embebbed srt
Replies: 3
Views: 1305

Re: roCaptionRenderer: Videoplayer & mkv with embebbed srt

I take it back. It looks like setting the subtitle track via ChangeSubtitleTrack works, it just prints an erroneous error that caused me to think it was broken. BrightScript Debugger> ?cr.GetSubtitleTracks() <Component: roAssociativeArray> BrightScript Debugger> ?cr.GetSubtitleTracks()[0] Language: ...
by malort
Mon Dec 14, 2015 3:43 pm
Forum: Roku Developer Program
Topic: roCaptionRenderer: Videoplayer & mkv with embebbed srt
Replies: 3
Views: 1305

Re: roCaptionRenderer: Videoplayer & mkv with embebbed srt

I'm running into the same issue with `ChangeSubtitleTrack(track as String)`. We can set the `SubtitleConfig.TrackName` before playback, but how does one change subtitles while the video is playing? Is there a way to change the subtitle stream during playback for MKVs with embedded SRTs? A side issue...
by malort
Sun Dec 06, 2015 2:37 am
Forum: Roku Developer Program
Topic: Pass double quote " in String
Replies: 8
Views: 1583

Re: Pass double quote " in String

It can be done more simply. Given: s = chr(34) + "hello" + chr(34) or equivalently: s = """hello""" You can do: s = s.Replace(chr(34), "") or equivalently: s = s.Replace("""", "") How safe is the second option? Are ther...