I read this article
http://www.coronalabs.com/blog/2012/01/24/using-the-new-native-web-video-apis/
but I did not understand it.
I would like to play a movie in storyboard fro my book. I try this but id did not work, do you know why?
I have a function
local function moreWorld()
local video = native.newVideo (0, 0, 220, 275)
video:load(“julio.mov”, system.DocumentsDirectory)
video:play()
video.x = 50
video.y = 150
video:pause()
video:removeSelf()
video = nil
return true
end
and a button to make the function work
buttonMore = widget.newButton{
defaultFile=“buttonMoreRed.png”,
onRelease = moreWorld
}
buttonMore.x = 700
buttonMore.y = 400
I was hoping that when I press the button the movie will play but it didn’t work.
Thanks for your help on this
Victor