关于同步播放(27)

  • 主题发起人 terry_zhou82
  • 开始时间
T

terry_zhou82

Unregistered / Unconfirmed
GUEST, unregistred user!
我有下面的代码:if FormatDateTime('hh:mm:ss',now)=FormatDateTime('hh:mm:ss',DateTimePicker1.time) then begin MediaPlayer1.filename:=ButtonedEdit1.Text; MediaPlayer1.Open; MediaPlayer1.play;。。。。。但执行时,总是会比实际的现行时间慢2,3秒钟,有什么办法可以解决吗?用sleep ?
 
有知道的兄弟吗?
 
如果文件比较大,那open和play时就会慢一点的。
 
不大啊,最多也就4,5M,那就是没有办法喽?
 
有兄弟知道吗?
 
if FormatDateTime('hh:mm:ss',now+4)=FormatDateTime('hh:mm:ss',DateTimePicker1.time) then begin MediaPlayer1.filename:=ButtonedEdit1.Text; MediaPlayer1.Open; MediaPlayer1.play;。。。。。
 
接受答案了.
 

Similar threads

I
回复
0
查看
662
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
928
import
I
顶部