Hi everybody,
I'm trying to use quicktime API to play movies in my application, developed
in C++ with wxWidgets.
I'm new in quicktime developing, so I'm making some test, I'm trying to play
a movie in the "Minimal" wxWidgets sample application. I'm trying to use the
"NewMovieFromUserProc" to get the movie, because I'll need to get movies
from a buffer or a stream in my application.
It's almost impossible find some example about the use of this function over
internet, so I try to use this code that I found on a web page.
bool MyFrame::load(wxString Filepath){
bool result = false;
std::ifstream is;
is.open(Filepath.c_str(),std::ios::binary);
if (is.good()) {
// On error or exit, dispose of the controller, movie, window (in that
order)
bail:
return FALSE;
/*
free(myTitle);
if (gController != NULL)
DisposeMovieController(gController);
if (theMovie != NULL)
DisposeMovie(theMovie);
*/
}
return result;
}
But the application can't retrieve the movie, and in the application window
it seems nothing happens!!
During the debug I can see that there is a -1024 error "Movie not found".
Can someone help me?
Thank you in advance.
Luca
_________________________________________________________________
Scarica Windows Live Messenger e chiama gratis in tutto il mondo!
http://www.messenger.it/connessione.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden