BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DS PACK & PLAYSTATECHANGE

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
daniel cc
Guest





PostPosted: Sun Mar 19, 2006 11:03 pm    Post subject: DS PACK & PLAYSTATECHANGE Reply with quote



Hi Guys,

I just started to use DS Pack and I am lost with it!

What is the event for "PlayStateChange" in DS Pack?

I am displaying some videos in my application and I have to jump to some
other actions after the end of the video but I simply have no idea about
what is the event for that when video is finished?

Please help!!

{-daniel cc
Back to top
Mike Warren
Guest





PostPosted: Mon Mar 20, 2006 1:03 pm    Post subject: Re: DS PACK & PLAYSTATECHANGE Reply with quote



daniel cc wrote:
Quote:
What is the event for "PlayStateChange" in DS Pack?

Use TFilterGraph.OnDSEvent.

Quote:
what is the event for that when video is finished?
Check for Event = EC_COMPLETE.


-Mike
Back to top
daniel cc
Guest





PostPosted: Tue Mar 21, 2006 8:03 am    Post subject: Re: DS PACK & PLAYSTATECHANGE Reply with quote



Thanks Mike,
This is what I had for TActiveMovie and this is what I need!
......
procedure TiVisualCVLiteEditor.aMovieViewPlayStateChange(Sender: TObject;
OldState,
NewState: Integer);
begin
if (aMovieView.PlayState = mpStopped) then
aMovieView.Close;
end;
..........

I really can't find a similar way or way about how to do it in DS Pack!!

Any help?

{-daniel cc

"Mike Warren" <miwa-not-this-bit@or-this-csas.net.au> wrote in message
news:441e9520 (AT) newsgroups (DOT) borland.com...
Quote:
daniel cc wrote:
What is the event for "PlayStateChange" in DS Pack?

Use TFilterGraph.OnDSEvent.

what is
the event for that when video is finished?
Check for Event = EC_COMPLETE.

-Mike



Back to top
Mike Warren
Guest





PostPosted: Thu Mar 23, 2006 2:03 pm    Post subject: Re: DS PACK & PLAYSTATECHANGE Reply with quote

Daniel,

Quote:
This is what I had for TActiveMovie and this is what I need!
.....
procedure TiVisualCVLiteEditor.aMovieViewPlayStateChange(Sender:
TObject; OldState,
NewState: Integer);
begin
if (aMovieView.PlayState = mpStopped) then
aMovieView.Close;
end;
.........

I really can't find a similar way or way about how to do it in DS
Pack!!

I'm not exactly sure what your problem is. Do you mean you
want to close the file when it finishes? Look at the playwin
demo I mentioned in your earlier thread.

-Mike
Back to top
daniel cc
Guest





PostPosted: Thu Mar 23, 2006 4:03 pm    Post subject: Re: DS PACK & PLAYSTATECHANGE Reply with quote

Mike,

Many thanks for the help!

This was the event I needed!
and it is rocking!
....
procedure TFormPlayWin.FilterGraphGraphComplete(sender: TObject;
Result: HRESULT; Renderer: IBaseFilter);
begin
FilterGraph.Stop;
FilterGraph.ClearGraph;
////**** Jumps to another kind of media like playing HTML etc.
end;
......

{-daniel cc


"Mike Warren" <miwa-not-this-bit@or-this-csas.net.au> wrote in message
news:44229d30 (AT) newsgroups (DOT) borland.com...
Quote:
Daniel,

This is what I had for TActiveMovie and this is what I need!
.....
procedure TiVisualCVLiteEditor.aMovieViewPlayStateChange(Sender:
TObject; OldState,
NewState: Integer);
begin
if (aMovieView.PlayState = mpStopped) then
aMovieView.Close;
end;
.........

I really can't find a similar way or way about how to do it in DS
Pack!!

I'm not exactly sure what your problem is. Do you mean you
want to close the file when it finishes? Look at the playwin
demo I mentioned in your earlier thread.

-Mike

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.