Hi,
I’m trying to get a video to loop using the new native.newVideo( ).
I’ve tried creating a function to seek to 0 again which works once…
Is there a proper way to loop a movie continuously using native.newVideo( )?
[lua]local v = native.newVideo(130, 130, 150, 150 );
v:load(“jump.m4v”);
v:play();
local function loopVideo( event )
if event.phase == “ended” then
v:seek( 0 )
v:play()
end
if event.phase == “ready” then
v:seek( 0 )
v:play()
end
end
v:addEventListener(“video”, loopVideo)[/lua]
Thanks
[import]uid: 33866 topic_id: 24513 reply_id: 324513[/import]


[import]uid: 2734 topic_id: 24513 reply_id: 100099[/import]