Forum Discussion

scorpiontahir02's avatar
12 years ago

roScreen

Hi,

I am writing an application that needs to run an roVideoPlayer in the background and show a different image when the video is buffering and a different image when video is playing. But then problem is when the video is loading the screen is drawn perfectly but when the video is playing screen is not drawn right. Screen is filled with black colour (i can see a very dim video playing behind this black color). I am not sure why this is working when video is loading but not when video is playing.

Here is my function that i am using to redraw screen:


function draw_screen()
tempImg = CreateObject("roBitmap", {width:1920, height:1080, AlphaEnable: true})
tempImg.DrawObject(0, 0, m.content.frameImage)
tempImg.DrawObject(1330, 40, m.content.banner506x180)
tempImg.DrawObject(1330, 221, m.content.banner506x643)
if m.isLoadingVideo = true
tempImg.DrawObject(40, 144, m.content.nowLoadingImage)
end if
m.screen.Clear(&h00000000)
m.screen.DrawScaledObject(0, 0, m.xFactor, m.yFactor, tempImg)
m.screen.SwapBuffers()
end function
No RepliesBe the first to reply