How to make button who open video?

local function handleButtonEvent( event )

if ( "ended" == event.phase ) then
end

end

local button1 = widget.newButton(
{
label = “button”,
onEvent = handleButtonEvent,
emboss = false,

    shape = "roundedRect",
    width = 200,
    height = 40,
    cornerRadius = 4,
    fillColor = { default={255,255,255}, over={1,0.1,0.7,0.4} },
    strokeColor = { default={255,255,255}, over={1,0.1,0.7,0.4} },
    strokeWidth = 1,
}

)

button1.x = display.contentCenterX
button1.y = display.contentCenterY + 275

button1:setLabel( “Get Started” )

This is my code…

I think you’re looking for this.

if ( "ended" == event.phase ) then
     media.playVideo( "movie.m4v", true )
end