TwindowsMediaPlayer and mp4 |
尚未結案
|
bigjing
一般會員 發表:4 回覆:4 積分:1 註冊:2005-01-24 發送簡訊給我 |
HI, I am trying to use TwinowsMediaPlayer in my program. and
I find it is ok to play format such as: avi, mpg
but when I try to play mp4 vedio, I get error: "Raised exception class EMCIDeviceError with message "Can't determine
the device type from the given filename extension"
:( But when I use Windows media player to watch this video, there is no problem. I have windows xp bcb 6.0 windows media player 10 in my computer // String fname ="C:\\MOVIE\\african_queen.mp4"; // get error when play this
// String fname = "C:\\Music\\movie\\Birthday Girl.avi"; // this is ok
String fname = "C:\\Music\\movie\\baby_doll.mpg"; // This is ok
IWMPMediaPtr media = WindowsMediaPlayer1->mediaCollection->add(WideString(fname).c_bstr());
WindowsMediaPlayer1->URL = media->get_sourceURL();
WindowsMediaPlayer1->controls->play(); Could anyone help me on this:) Thanks
|
bigjing
一般會員 發表:4 回覆:4 積分:1 註冊:2005-01-24 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |