codeplex の一般的な sl2videoplayer を使用してビデオを再生していますが、IIS Web サーバーでリモート ビデオを再生するときはすべて問題ありません。Sl2videoplayer はhttp://www.codeplex.com/sl2videoplayerにあります。
しかし、ディスクから default.html をローカルで開くと (default.html をダブルクリックして IE で開きます)、IE に次のようなエラー メッセージが表示されます (左下隅に IE の警告サインがあります。以下を参照してください)。画面のスナップショット)。以下に示すように、メディア ファイルを Output.wmv に変更したことを除いて、sl2videoplayer にコードの変更はありません。何が間違っているのですか?私が達成したい効果は、サーバーに接続せずに (インターネットから切断されたときに) Silverlight プレーヤーを使用してローカル ファイルを再生したいということです。
私が使用している default.html (私は Output.wmv を ClientBin ディレクトリにコピーし、VideoPlayer.xap は同じディレクトリにあります)
<div id="silverlightControlHost">
<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="500" height="240">
<param name="source" value="ClientBin/VideoPlayer.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<param name="initParams" value="cc=true,markers=true,markerpath=markers_movie21.xml,m=Output.wmv" />
<a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
</object>
<iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
</div>
IE のエラー メッセージと関連する画面のスナップショット、
Web ページのエラーの詳細
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022; CIBA; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Fri, 10 Jul 2009 06:20:19 UTC
Message: Unhandled Error in Silverlight 2 Application
Code: 4004
Category: ManagedRuntimeError
Message: System.NotSupportedException: The URI prefix is not recognized.
at VideoPlayer.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)
at MS.Internal.Error.CallApplicationUEHandler(Exception e)
at MS.Internal.Error.GetXresultForUserException(Exception ex)
Line: 53
Char: 13
Code: 0
URI: file:///C:/Test/sl2videoplayer/VideoPlayerWeb/default.html
IEの画面スナップショット、
http://i31.tinypic.com/xgh84i.jpg
前もって感謝します、ジョージ