Dspack开发视频播放,怎样从指定的时间开始播放,如:从0:02:35开始播放。谢谢!
解决方案 »
- WebBrowser 多窗口问题
- 关于SQL查询的问题
- 哪位高手能给我一个到源码空间(www.playicq.com)的下载的帐号?不受1k速度的限制。我有急用啊要是有的话分全给你。
- 代码问题!高手来看看。
- 我想用delphi产生10位随机密码,里面有英文也有中文,我忘记用什么函数了,请各位大虾指点一下。
- 有没有用过wwDBLookupCombo控件的??
- ADO问题——:”初始化提供者时发生错误,测试连接失败。无法启动应用程序。工作组信息文件丢失,或是已被其他用户以独占方式打开。”
- sql中的数据转化问题(varchar to datetime)?????
- 咋搞得?
- 求救控制WebBrowser下拉列表选择问题
- 最近发现一个软件,他有部分图片是写在INI文件里头的,全部是数字,不知道是怎么读取并显示的
- 我想做个小程序来获取键盘的每一个键的键值,当该程序运行时,按下哪个键就能显示该键键值,该怎么做呢??!在线等!!
Var
testTime: integer;
CurrPos, StopPos,currTimePoint: Int64;
MediaSeeking: IMediaSeeking;
Begin If self.Edit1.Text <> '' Then
FilterGraph1.QueryInterface(IMediaSeeking, MediaSeeking);
With MediaSeeking Do
Begin
testTime := 0;
testTime := Timepointtoint(self.Edit1.Text);
GetStopPosition(StopPos);
GetCurrentPosition(CurrPos);
CurrPos := testTime * 100000;
SetPositions(CurrPos, AM_SEEKING_AbsolutePositioning,
StopPos, AM_SEEKING_NoPositioning);
End;
currTimePoint := CurrPos;
End;
刚才忘了给你一个函数 这是把你所说的00:00:00转换成int格式Function Tform1.TimePointToInt(TimeStr: String): Int64;
Var
M, S, MS: Integer;
Begin
TimeStr := Trim(TimeStr);
If (TimeStr = '') Or (TimeStr = '[ ]') Then
Begin
Result := MaxLongInt;
Exit;
End;
TimeStr := StringReplace(TimeStr, '[', '', []);
TimeStr := StringReplace(TimeStr, ']', '', []);
Try
M := StrToInt(Copy(TimeStr, 1, 2));
S := StrToInt(Copy(TimeStr, 4, 2));
MS := StrToInt(Copy(TimeStr, 7, 2));
Result := MS + (M * 60 + s) * 100;
Except
Result := MaxLongInt;
End;
End;