Video inside ScrollView Mask BUG

Hello I noticed anytime you insert a video into a scrollView it will ignore the Graphics 2.0 scrollView masking…

The code below shows the example

local widget=require("widget") local dw=display.contentWidth local dh=display.contentHeight local spacer=0 local scrollView=widget.newScrollView{top=0,left=0,width=dw,height=dh-100} scrollView.anchorY=1 scrollView.x,scrollView.y=dw/2,dh for i=1,10 do local video=native.newVideo(dw/2,spacer,320,320) video.anchorY=0 video:load("http://files.parse.com/0524e7f8-43ae-4631-af91-3153c56ca2f9/2b24b0da-816f-46be-9656-1aa918247b51-video.mov",media.RemoteSource) scrollView:insert(video) spacer=spacer+370 end

Hi @eja,

Native video objects are not part of the OpenGL canvas and can’t be inserted into groups. ScrollViews are groups at their core, so you can’t mask videos in this manner.

Sincerely,

Brent Sorrentino

Hi Brent, thank you for your quick reply! If I wanted to achieve such a functionality would this need to be done on the native side of Corona Enterprise? or is this not accomplishable at this moment with Corona?

Hi @eja,

Native video objects are not part of the OpenGL canvas and can’t be inserted into groups. ScrollViews are groups at their core, so you can’t mask videos in this manner.

Sincerely,

Brent Sorrentino

Hi Brent, thank you for your quick reply! If I wanted to achieve such a functionality would this need to be done on the native side of Corona Enterprise? or is this not accomplishable at this moment with Corona?