video

Type Event
Revision Release 2024.3703
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()