 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Guest
|
Posted: Wed Jul 21, 2004 6:34 am Post subject: Any Multimedia Component has this function ? |
|
|
1. choose start from which frame when playing starts
2. play speed control
i tried DSPack, but it failed in doing 1.
Thanks for help.
|
|
| Back to top |
|
 |
David Guest
|
Posted: Wed Jul 21, 2004 7:35 am Post subject: Re: Any Multimedia Component has this function ? |
|
|
2. seems also unable. {correct me if i'm wrong}
"David" <david (AT) fd (DOT) com> 撰寫於郵件新聞
:40fe10af (AT) newsgroups (DOT) borland.com...
| Quote: | 1. choose start from which frame when playing starts
2. play speed control
i tried DSPack, but it failed in doing 1.
Thanks for help.
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Wed Jul 21, 2004 1:44 pm Post subject: Re: Any Multimedia Component has this function ? |
|
|
2. can , but has problem
"David" <david (AT) fd (DOT) com> 撰寫於郵件新聞
:40fe1d15$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 2. seems also unable. {correct me if i'm wrong}
"David" <david (AT) fd (DOT) com> 撰寫於郵件新聞
:40fe10af (AT) newsgroups (DOT) borland.com...
1. choose start from which frame when playing starts
2. play speed control
i tried DSPack, but it failed in doing 1.
Thanks for help.
|
|
|
| Back to top |
|
 |
David Guest
|
Posted: Wed Jul 21, 2004 2:26 pm Post subject: Re: Any Multimedia Component has this function ? |
|
|
1. choose start from which frame when playing starts
<-- solved , any DSPack development members here ?
i solved it by adding this code to TDSTrackbar, i suggest that it can
be added in the next version of DSPack, so that other programmer can
change the playing position easier.
///////////////////////////////////////////////
procedure TDSTrackBar.SetPosition(pos :integer);
var
StopPosition, CurrentPosition: int64;
begin
if assigned(FMediaSeeking) then
begin
Position := pos;
FMediaSeeking.GetStopPosition(StopPosition);
CurrentPosition := (StopPosition * Position) div max ;
FMediaSeeking.SetPositions(CurrentPosition,
AM_SEEKING_AbsolutePositioning,
StopPosition ,
AM_SEEKING_NoPositioning);
end;
end;
///////////////////////////////////////////////
"David"
:40fe10af (AT) newsgroups (DOT) borland.com...
| Quote: | 1. choose start from which frame when playing starts
2. play speed control
i tried DSPack, but it failed in doing 1.
Thanks for help.
|
|
|
| Back to top |
|
 |
|
|
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
|
|