Im using native.newVideo API to play video intro for my game. But the video is played in black screen
Here is the code. Am I doing something wrong ?
local video = native.newVideo( 0, 0, 480, 320 )
-- load a video
video:load( "intro.m4v", system.DocumentsDirectory )
--video:seek( 0 )
video:play()
local function stopVideo()
video = nil
game.changeScene("mainscene")
end
timer.performWithDelay(6000, stopVideo, 1)
[import]uid: 11559 topic_id: 23277 reply_id: 323277[/import]