Dear All,
media.selectVideo does not seem to be working for me on my iPhone 5 iOS 8.1.2.
If I specify a filename, the video loads correctly, but EVENT.url cases the app to crash.
Please see code below.
Any thoughts?
Thanks!
John
[lua]
local widget = require( “widget” )
display.setStatusBar( display.HiddenStatusBar )
local XCTR = display.contentCenterX
local YCTR = display.contentCenterY
local WIDTH = display.contentWidth
local HEIGHT = display.contentHeight
local VIDEO = native.newVideo( XCTR, YCTR, WIDTH /2, HEIGHT /2 )
local function PLAY_VIDEO (EVENT)
if EVENT.completed then
VIDEO:load( EVENT.url )
VIDEO:play()
end
end
media.selectVideo( { listener=PLAY_VIDEO } )
[/lua]