Re: Playing mp4 with mci

"[email protected] [gui4cli]" <[email protected]> 24 May 2014 12:26:58 -0700
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
Hi Dimitris,

I'm a bit confused myself now about the notify addition in the script mci commands.
It's been a while since I used it. But I now think they still need to be there.


// universal MCI replacement for GUI MCI
                
         RETCODE _export WINAPI MCI (struct gcArguments *args)
         {
                        
            MCIERROR result;
            char tmp[512];
            UCHAR mci_retStr[128];
            //HRESULT coflag;
                                   
            strcpy(tmp,args[0].str);
            strser(tmp,"/","\\");
                  
            result = mciSendString(tmp, mci_retStr, sizeof(mci_retStr), 0);
            if (result > 0) { return 9; } // error
                               
            gcSetVar("vidplay.mci_return",mci_retStr); // MCI return to GUI
            gcSetVar("vidplay.mci_state",mci_retStr); // MCI return to GUI
        
            return 0;   
               
         }

Probably the "mci_retStr" contents that I send to the gui are the mci notifications.
I guess this is what you store in a mci system variable in g4c?

Chris