| View previous topic :: View next topic |
| Author |
Message |
daniel cc Guest
|
Posted: Sun Mar 19, 2006 11:03 pm Post subject: DS PACK & PLAYSTATECHANGE |
|
|
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
|
Posted: Mon Mar 20, 2006 1:03 pm Post subject: Re: DS PACK & PLAYSTATECHANGE |
|
|
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
|
Posted: Tue Mar 21, 2006 8:03 am Post subject: Re: DS PACK & PLAYSTATECHANGE |
|
|
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
|
Posted: Thu Mar 23, 2006 2:03 pm Post subject: Re: DS PACK & PLAYSTATECHANGE |
|
|
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
|
Posted: Thu Mar 23, 2006 4:03 pm Post subject: Re: DS PACK & PLAYSTATECHANGE |
|
|
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 |
|
 |
|