🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #663

Media Player closes video image in the end

#663
From: Rafael
Date: Thu, 27 Mar 2003 16:25
46 lines
1974 bytes
Hello all:

I'm having a problem with TMediaPlayer component in BCB4 that is annoying 
me.

I place one component on a Form, assign it to a Panel  and control it in 
the code. My intention is to play one AVI, wait for it to finish, then do 
something else and later play another AVI that continues the same scene 
than the first one.
The problem is that when the first AVI ends, the panel turns into grey, 
not showing the last AVI frame.
If I just use this code:

    	MediaPlayer->FileName="myavi.avi";
    	MediaPlayer->Open();
    	MediaPlayer->Play();
    	MediaPlayer->Play();


the AVI works and ends well, but so I can't control when it finishes. If 
I use any of these techniques:

    	MediaPlayer->FileName="myavi.avi";
    	MediaPlayer->Open();
    	MediaPlayer->Play();
    	MediaPlayer->Play();
    	do {
    	Sleep(1000);
    	} while(MediaPlayer->Mode!=1);

or

    	MediaPlayer->FileName="myavi.avi";
    	MediaPlayer->Open();
    	MediaPlayer->Play();
    	MediaPlayer->Wait=true;
    	MediaPlayer->Play();

then the panel greys out.

Any idea?
Can anyone suggest a better AVI component than the one in BCB4?

Thank you very much and best regards.

Rafael Caballos
Technical Details
Message-ID: <Xns934BB1C644D4Arafcabhotpopcom@207.105.83.65>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,b9417c11f5796e2e,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-03-27 08:36:09 PST
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Media Player closes video image in the end
From: Rafael <rafcab@hotpop.com>
Message-ID: <Xns934BB1C644D4Arafcabhotpopcom@207.105.83.65>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 213.227.30.224
Date: 27 Mar 2003 08:25:46 -0800
X-Trace: newsgroups.borland.com 1048782346 213.227.30.224 (27 Mar 2003 08:25:46 -0800)
Lines: 46
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail