Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to know if a movie is finished?
Feedback.

Answer: This code can help you althrough it's not perfect:
Example:
#if TARGETcarbon
Declare Function IsMovieDone Lib "Apple;Carbon;Multimedia" (theMovie as Integer) as Integer
#else
Declare Function IsMovieDone Lib "QuickTimeLib" (theMovie as Integer) as Integer
#endif

if IsMovieDone(moviePlayer1.movie.handle) <> 0 then
//movie is finished
end if

Notes: But be carefull! It crashes sometimes for an unknown reason!?



Links
MBS Realbasic Plugins - Pfarrgemeinde Ministranten Nickenich