Article View: borland.public.cppbuilder.multimedia
Article #684Re: Media Player closes video image in the end
From: Rafael
Date: Thu, 17 Apr 2003 10:58
Date: Thu, 17 Apr 2003 10:58
36 lines
2332 bytes
2332 bytes
Hi Marcelo: Thank you for your answer, though you don't give me much hope. I've tried to close, stop and pause the video but the final effect is the same: grey screen. What I've done is place a TImage component over TMediaPlayer and toggle it on or off when I need. It is not a good solution but I can't find another way to solve it. If you come across other possible solutions, please let me know. Regards Rafael Caballos "Marcelo R. Lopez, Jr." <marcelol@directvinternet.com> wrote in news:3e9c2fc3$1@newsgroups.borland.com: > Rafael, > > The short answer is "You can't do that". The long answer is that you > can't switch media elements with the device open. > Playing individual files are a Open(), Play(), Close(), sort of deal > with TMediaPlayer. To do what you're saying, you would have to > Pause() the MediaPlayer at that last moment ( and you can do this by > setting yourself up to be notified by the MCI as the playback > progresses ), and then do the stop of the video ( so that it's still > displaying that last frame ). Then, when you're ready to play the next > element....and I'm still not certain this will work for you, you're > going to have to close(), assign the new video file clip, Open() and > Play(), one right after the other. > > TMediaPlayer does NOT support playing from memory, so that rules out > being able to switch streams on it. > > Marcelo R. Lopez, Jr. >
Technical Details
Message-ID:
<Xns9360840728FD4rafcabhotpopcom@207.105.83.65>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns934BB1C644D4Arafcabhotpopcom@207.105.83.65> <3e9c2fc3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,b9417c11f5796e2e X-Google-Attributes: gid10d0fc,public X-Google-ArrivalTime: 2003-04-17 04:09:09 PST Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: Media Player closes video image in the end From: Rafael <rafcab@hotpop.com> References: <Xns934BB1C644D4Arafcabhotpopcom@207.105.83.65> <3e9c2fc3$1@newsgroups.borland.com> Message-ID: <Xns9360840728FD4rafcabhotpopcom@207.105.83.65> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 213.227.37.151 Date: 17 Apr 2003 03:58:03 -0700 X-Trace: newsgroups.borland.com 1050577083 213.227.37.151 (17 Apr 2003 03:58:03 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail