Type Event Revision Current Public Release (2018.3326) Keywords video See also native.newVideo() Video
Used in conjunction with native.newVideo() and Video objects.
local video = native.newVideo( display.contentCenterX, display.contentCenterY, 320, 480 ) local function videoListener( event ) print ( "Event phase: " .. event.phase ) end -- Load a video video: load ( "myVideo.m4v" , system.DocumentsDirectory ) -- Add video event listener video:addEventListener( "video" , videoListener ) -- Play video video:play() |