video

Type Event
Revision Current Public Release (2018.3326)
Keywords video
See also native.newVideo()
Video

Overview

Used in conjunction with native.newVideo() and Video objects.

Properties

Example

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()