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 

Any Multimedia Component has this function ?

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





PostPosted: Wed Jul 21, 2004 6:34 am    Post subject: Any Multimedia Component has this function ? Reply with 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





PostPosted: Wed Jul 21, 2004 7:35 am    Post subject: Re: Any Multimedia Component has this function ? Reply with quote



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





PostPosted: Wed Jul 21, 2004 1:44 pm    Post subject: Re: Any Multimedia Component has this function ? Reply with quote



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





PostPosted: Wed Jul 21, 2004 2:26 pm    Post subject: Re: Any Multimedia Component has this function ? Reply with quote

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
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.