#include <mo/Mobiclip.h>MOResult MOOpen(MOInstance* pInstance, const void* pMovie);
| pInstance | The MOInstance pointer to the movie to open. |
| pMovie | That field is either the name of the movie to open in simple cases such as DVD, or a pointer to a structure specific to a given control block. |
MO_RESULT_OK |
Open accepted. |
MO_RESULT_OUT_OF_MEMORY |
Not enough memory. |
MO_RESULT_NULL |
MOInstance or movie pointer is NULL. |
MO_RESULT_OPEN_FAILED |
Open failed. |
MO_RESULT_ALREADY_OPENED |
Movie already opened. |
You can open several movies at the same time, but beware of the limitation of the MO_MEDIUM_CONTROL you are using.
For example, the DVD access MO_MEDIUM_CONTROL provided as sample code is limited to one instance for performance reason.
If the source is not local, a MO_RESULT_OK return value does not mean the open is successful.
You will have to call repeatedly MORun() and poll MOGetStatus() to see if the status goes to READY or to ERROR.
In case a source is local (CNT or DVD), a MO_RESULT_OK return value means open successfull, no need to call MOGetStatus() nor MORun().
03/26/2009 Parameter renaming done.
07/29/2008 Initial version.