how to do a video on part of the screen

hi,

i want to do an animated movie in my app for about 5-7 seconds

(or an animated background or a simple intro movie that runs on part of the screen)

the thing is how to do it ?

if i use a sprite sheet then the largest image sheet i can use is 2200 px, x 2200 px

if we take iphone 4 core resolution it’s about 640,960 it’s only 5 or 6 frames…

and i can’t use it as a video because corona still doesn’t allow

native.newVideo() 

on any android device

so

my question is

how do i do it ?

thank you …

shay

just for qlerity, if we have as low as 24 frames per sedond, 5 seconds means i’ll have a sprite sheet of 120 images…which will be 15,360 x 23,040 px

so how to do it thgough video . ?

Hi @Mars Interactive,

Since this must be partial-screen (thus ruling out the media.* method on Android), you may consider using the sprite library to animate it, but as you mention, the texture size would be too limiting using one sheet. But, note that you can assemble sprites from several sheets, i.e. you could have frames 1-10 on a sheet, 11-20 on another sheet, etc. You might also consider scaling up the object a bit to fit more frames on the sheet… i.e. unless the video needs to be ultra-crisp, you could scale up slightly smaller frames to about 120% and it would probably look fine, especially on devices with smaller screens (phones).

The multi-sheet sprite setup is outlined here (last section):

http://docs.coronalabs.com/api/library/display/newSprite.html

Regards,

Brent Sorrentino

just for qlerity, if we have as low as 24 frames per sedond, 5 seconds means i’ll have a sprite sheet of 120 images…which will be 15,360 x 23,040 px

so how to do it thgough video . ?

Hi @Mars Interactive,

Since this must be partial-screen (thus ruling out the media.* method on Android), you may consider using the sprite library to animate it, but as you mention, the texture size would be too limiting using one sheet. But, note that you can assemble sprites from several sheets, i.e. you could have frames 1-10 on a sheet, 11-20 on another sheet, etc. You might also consider scaling up the object a bit to fit more frames on the sheet… i.e. unless the video needs to be ultra-crisp, you could scale up slightly smaller frames to about 120% and it would probably look fine, especially on devices with smaller screens (phones).

The multi-sheet sprite setup is outlined here (last section):

http://docs.coronalabs.com/api/library/display/newSprite.html

Regards,

Brent Sorrentino