-#if 0
- if (!m_bPaused)
- {
- if(!IsMovieDone(m_movie))
- MoviesTask(m_movie, MOVIE_DELAY);
- else
- {
- wxMediaEvent theEvent(wxEVT_MEDIA_STOP,
- m_parent->m_ctrl->GetId());
- m_parent->m_ctrl->GetEventHandler()->ProcessEvent(theEvent);
-
- if(theEvent.IsAllowed())
- {
- Stop();
- m_parent->Stop();
- wxASSERT(::GetMoviesError() == noErr);
-
- //send the event to our child
- wxMediaEvent theEvent(wxEVT_MEDIA_FINISHED,
- m_parent->m_ctrl->GetId());
- m_parent->m_ctrl->GetEventHandler()->ProcessEvent(theEvent);
- }
- }
- }
-#endif
+ // error occurred
+ }
+ else if (loadState >= QTMovieLoadStatePlayable)
+ {
+ // the movie has loaded enough media data to begin playing, but we don't have an event for that yet
+ }
+ else if (loadState >= QTMovieLoadStateComplete) // we might use QTMovieLoadStatePlaythroughOK
+ {
+ m_backend->FinishLoad();