Quote:
Originally Posted by anson_wongy
You can use all formats that windows media player supports.
I case u can use Real Media if u have Real Media Codec in ur computer.
|
英文太爛了~打中文好了!!...(English poor!!)
如果我要讓 WMP 和 Real Audio 同時支援的話,我該怎麼做 ??
我試過直接複製程式碼,然後貼上 Real Audio 的 CLSID ,Compile 會出現警告,但還是可以用,只是 Real Audio format 還是無法使用。
程式碼如下,請幫我看一下:
Code:
public show_HLMP(id, MediaID) {
new motd[1024], MediaURL[128]
format(MediaURL, 127, g_MediaURL[MediaID][0])
format(motd, 1023, "<html><head><meta http-equiv=^"content-type^" content=^"text/html; charset=UTF-8^"></head><body bgcolor=^"#000000^" align=^"center^"><span style=^"color: #FFB000; font-size: 9pt^">正在播放: %s (#%d)
", g_MediaNames[MediaID], MediaID)
format(motd, 1023, "%s<object classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 codebase=http://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=5,1,51,415 type=application/x-oleobject name=msplayer width=256 height=65 align=^"middle^" id=msplayer>", motd)
format(motd, 1023, "%s<param name=^"enableContextMenu^" value=^"false^"><param name=^"stretchToFit^" value=^"true^">", motd)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"TRUE^"><param name=^"URL^" value=^"%s^">", motd, MediaURL)
format(motd, 1023, "%s<param name=^"uiMode^" value=^"full^"><param name=^"width^" value=^"256^"><param name=^"height^" value=^"65^">", motd)
format(motd, 1023, "%s<param name=^"TransparentAtStart^" value=^"true^"></object>
%s</span>", motd, LANG_CLOSEWINDOW)
format(motd, 1023, "%s</body></html>", motd)
show_motd(id, motd, "HL音樂播放器")
format(motd, 1023, "<html><head><meta http-equiv=^"content-type^" content=^"text/html; charset=UTF-8^"></head><body bgcolor=^"#000000^" align=^"center^"><span style=^"color: #FFB000; font-size: 9pt^">正在播放: %s (#%d)
", g_MediaNames[MediaID], MediaID)
format(motd, 1023, "%s<object classid=CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA type=application/x-oleobject name=realplayer width=256 height=65 align=^"middle^" id=realplayer>", motd)
format(motd, 1023, "%s<param name=^"enableContextMenu^" value=^"false^"><param name=^"stretchToFit^" value=^"true^">", motd)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"TRUE^"><param name=^"URL^" value=^"%s^">", motd, MediaURL)
format(motd, 1023, "%s<param name=^"uiMode^" value=^"full^"><param name=^"width^" value=^"256^"><param name=^"height^" value=^"65^">", motd)
format(motd, 1023, "%s<param name=^"TransparentAtStart^" value=^"true^"></object>
%s</span>", motd, LANG_CLOSEWINDOW)
format(motd, 1023, "%s</body></html>", motd)
show_motd(id, motd, "HL音樂播放器")
}