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:
Notes: But be carefull! It crashes sometimes for an unknown reason!?
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