onclick
begin
if (button=btstop)or(button=btpause)then
mediaplayer1.notify:=false
else
mediaplayer1.notify:=true;
end;
on notify
begin
with mediaplayer1 do
begin
if notify and //接受信息
and (mode=mpstopped) then//已经停止
begin
rewind;
play;
end;
notify:=true;