okay. Here I create my listener first.
local function videoViewListener (event)
if (event.phase=“ended”) then --this doesn’t work
videoView:pause
videoView:removeSelf()
videoView=nil
(code to do something else)
end
videoView = native.newVideo( 0,0, V.W, V.H)
videoView:load( “test.m4v” ) – Loads the specified video.
videoView:play()
I then setup a listener.
videoView:addEventListener (“video”,videoViewListener)
The listener doesn’t work and I can’t find a list of event.phase values for “video”. I only found another topic on the same subject, but the poster solved his own problem by creating a timer that would run the ‘close’ after a certain number of seconds - perhaps that’s a good fix for him to continue developing, but I would like to know what events that Corona supports for native video. And is it different for each platform? I can’t find any tutorial or answers online that provide sufficient answers so that I can, for example, create my own play, rewind, and fast-forward buttons using the :seek comment - why? Because I don’t know what “event” to capture to know where the play head is either. Please help.