Question about the IMedia Interface. | developer.brewmp.com Question about the IMedia Interface. | developer.brewmp.com

Developer

Question about the IMedia Interface.

Forums:

Dear All:
I am a newbie in BREW applet development.
Recently, I am trying to know more about the IMedia Interface.
After some experiments, I have some questions about this interface.
First, where could I find the transition relationship of the state machine?
After the function call IMEDIA_Play() and complete the play of the whole media, I can't play it again.
If I call IMEDIA_Play()again, an error code "EBADSTATE" will be returned.
I would like to know the transition between these states clearer, could any one suggest me some useful material or methods?

My second question is that if it could work to create two media objects within 1 applet and let them play simultaneously?

IMEDIA_Play(*pMedia1);
IMEDIA_Play(*pMedia2);

Then the first AEEMediaCmdNotify.nStatus I got in the second callback function is MM_STATUS_START,
and the second is MM_STATUS_ABORT.
Then I can hear only the sounds created in pMedia1.

Though these questions are stupid and it's not quite important for my application,
However, I am curious about the answers for the two questions.

Any precious opinion and recommendations are all welcomed!

Thanks in advance.

Best Regards.

Doer Yang