Hi guys I am experiencing a little problem, I ignore how to resolve it.
can you help me please ?
local function play()
-----if file exist then
media.playVideo( “folder/file.mp4”, media.RemoteSource, true )
-------if file does’nt exist then
media.playVideo( “http://www. mysite/the/file.mp4”, media.RemoteSource, true ) download and save it to the folder
------elseif download incomplete then resume it
end
local Bl = display.newImageRect( sceneGroup, “image.png” , 240, 75 )
Bl.x = 140
Bl.y = 270
Bl:addEventListener( “tap”, play)