蔡鸟问题。(30分)

  • 主题发起人 404错误
  • 开始时间
4

404错误

Unregistered / Unconfirmed
GUEST, unregistred user!
请问在delphi中有什么控件既支持rm,有支持wma的?以前听别人说DSPack可以,不知道行不行。
 
网上去搜呀
 
最好还是,建立两个对象(mediaplayer和realplayer),识别播放!
 
请问通过什么方式达到识别么?能通过后缀名么?我想用一个opendialog分别识别可以么?
 
注册一个rm的ocx控件!
 
具体怎么用后缀来实现,通过一个opendialog来实现。有代码更好。谢谢。
 
procedure TForm1.Button1Click(Sender: TObject);
var FileExt:string;

begin

if opendialog1.Execute and mode then

begin

fileext:=AnsilowerCase( extractFileExt(opendialog1.FileName))
if FileExt='.rm' then
begin

realaudio1.Source:=opendialog1.FileName;
mode:=false;//自定义
end
else
begin

mediaplayer1.filename:=opendialog1.filename;
mode:=false;
end;

end;

end;
 
接受答案了.
 
顶部