多媒体小问题(100分)

海宁

Unregistered / Unconfirmed
GUEST, unregistred user!
在用Tmediaplayer控件时,wait 属性好象不起作用,
如: tmediaplayer1.filename:='........';
tmediaplayer1.open;
tmediaplayer1.rewind;
tmediaplayer1.wait:=true;
tmediaplayer1.play;
.......
并没有播放多媒体,而直接执行play 后面的代码
 
Wait affects only the next media control method called after setting
Wait. Wait must be reset to affect any subsequent call to a media
control method

wait只影响下一个media control method的调用, 而不是如你所理解的那样.
也就是说,在响应下一个有关该media的方法时, 它才会因前一个方法未完成而等待.
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
顶部