日期:2014-05-17 浏览次数:21425 次
<form id="form1" runat="server">
<div id="silverlightControlHost">
<object id="playerUI" data="data:application/x-silverlight-2,"
type="application/x-silverlight-2" width="100%" height="100%" >
<param name="source" value="/_sl/Example.PlayerTest.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object>
</div>
</form>
var sPlayerID = "playerUI";
function slLoadSomething(nId) {
var player = document.getElementById(sPlayerID);
if (player != null) {
if (typeof nCallId != 'undefined') {
player.Content.Switcher.loadSomething(nId);
}
}
}
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="Test.PlayerTestSite" EntryPointType="Test.PlayerTestSite.App" RuntimeVersion="4.0.50826.0">
<Deployment.Parts>
<AssemblyPart x:Name="Test.PlayerTestSite" Source="Test.PlayerTestSite.dll" />
<AssemblyPart x:Name="Test.ChannelTrackUI" Source="Test.ChannelTrackUI.dll" />
<AssemblyPart x:Name="Test.CoreUI" Source="Test.CoreUI.dll" />
<AssemblyPart x:Name="Test.PlayerController" Source="Test.PlayerController.dll" />
<AssemblyPart x:Name="Test.PlayerUI" Source="Test.PlayerUI.dll" />
<AssemblyPart x:Name="Test.RemarkViewUI" Source="Test.RemarkViewUI.dll" />
<AssemblyPart x:Name="Test.SilverlightTrace" Source="Test.SilverlightTrace.dll