Movieplayer Position

Code in a Timer works in R2013 (Quicktime) but not in R2014 , OSX 10.9.3

does “if player.Position=player.Duration then” not work with AVFoundation ?

If PushSingle.Caption=globals.PlaySingleTrack then if player.Position=player.Duration then LB3.ListIndex=LB3.ListIndex+1 SongLabel.text="" player.Stop me.mode=0 end else if player.Position=player.Duration then LB3.ListIndex=LB3.ListIndex+1 SongLabel.text="" LB3.ScrollPosition=LB3.ListIndex playbutton.Push End If end if

Did you check in debugger what values position and duration have?

Comparing doubles can be a problem, too.

for a test i use in Movieplayer.Play

MsgBox str(me.duration)

In Xojo2013 - 201.3767

In Xojo2014 - NAN(000)

I think I’ve found it.
The documentation says

with quicktime it was different.
it was enough to load the file to get a value. it must not be played.