So I’m trying to add my videos to my game and I noticed 2 things and I’d like some clarification, that I could be wrong on, and might possibly need some guidance on… 1) that automatic resizing for retina is not supported? 2) that there is no way to align the video to top/left, center… Below is my code and assuming that the pivot point is in the center this would make the video align to top left but it is nowhere close…
[lua]local width = 480;
local height = 320;
if(scale == .5)then – Scale is determined based on whether or not the device supports retina
width = 960;
height = 640;
end
video = native.newVideo( 0, 0, height, width );
video.x = 0 + (width / 2);
video.y = 0 + (height / 2);
video:load(video_file);
–video:seek( 30 )
video:play();
video:addEventListener( “video”, videoListener );[/lua]
What am I doing wrong?
[import]uid: 63800 topic_id: 22295 reply_id: 322295[/import]