【問題】線上廣播問題..





zankuro
2007-07-17, 03:54 PM
請教各位大大:
小弟最近使用Windows Media Encoder 7架設串流伺服器,並以網頁連結(使用.asx),大約在7/14日後即無法再使用,小弟將原本網頁的Embed標籤改為使用Object標籤,依然無法成功連結播放,但是如果直接開啟Media player使用開啟網址(Ctrl+U)則可以連上伺服器並播放,不知道是最近更新的問題嗎?有沒有哪位大人知道這個部分應該如何處理?謝謝。(另外試過使用.WPL連結亦無法使用)

OS:伺服和測試端皆為Windows XP SP2
串流編碼:WMEnoder 7
播放軟體:Media player 9
網頁語言:HTML

已解決..
修正方式..(微軟網站查到..)
<!-- Check Media Player Version -->

<SCRIPT LANGUAGE="VBScript">
<!--
On Error Resume Next
lngMP70 = IsObject(CreateObject("WMPlayer.OCX"))

' Windows Media Player 7 Code
If (lngMP70) Then
document.write "<OBJECT ID=MediaPlayer "

document.write " CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""140"" height=""65"">"
document.write "<PARAM NAME=""url"" VALUE=""這裡貼網址"">"
document.write "<PARAM NAME=""AutoStart"" VALUE=""0"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">"
document.write "<PARAM NAME=""ShowStatusBar"" VALUE=""1"">"
document.write "<PARAM NAME=""TransparentAtStart"" Value=""1"">"
document.write "<PARAM NAME=""AutoStart"" Value=""0"">"
document.write "<PARAM NAME=""AnimationatStart"" Value=""0"">"
document.write "<PARAM NAME=""ShowControls"" Value=""1"">"
document.write "<PARAM NAME=""autoSize"" Value=""0"">"
document.write "<PARAM NAME=""displaySize"" Value=""0"">"

document.write "</OBJECT>"


' Windows Media Player 6.4 Code
Else
document.write "<OBJECT ID=MediaPlayer "
document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
document.write "CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""140"" height=""65"">"
document.write "<PARAM NAME=""FileName"" VALUE=""這裡貼網址"">"
document.write "<PARAM NAME=""AutoStart"" VALUE=""0"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">"
document.write "<PARAM NAME=""ShowStatusBar"" VALUE=""1"">"
document.write "<PARAM NAME=""TransparentAtStart"" Value=""1"">"
document.write "<PARAM NAME=""AutoStart"" Value=""0"">"
document.write "<PARAM NAME=""AnimationatStart"" Value=""0"">"
document.write "<PARAM NAME=""ShowControls"" Value=""1"">"
document.write "<PARAM NAME=""autoSize"" Value=""0"">"
document.write "<PARAM NAME=""displaySize"" Value=""0"">"
document.write "</OBJECT>"
End If

-->
</script>