tjader - thanks for your questions! I'd like to clarify a couple of things about how the Silverlight control is intialized from the web page that should help. In order to play content, you will need three things:
-
A Web page with an <object> tag that creates hosts the control
-
A XAP (Silverlight application package) that the <object> tag loads
-
A set of initialization parameters (initParams) that get supplied to the logic in the XAP
The sample content package include the BlackGlass.html file which provides an example. If you look at the source for BlackGlass.html in a text editor, you should see all three of these element in action:
-
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"></object>
-
This is pretty much mandatory. You can change the visual display attributes but the data and type attributes pretty much need to appear as they are in the sample file.
-
The other <param> tag below reside inside the <object> tag.
-
<param name="source" value="SmoothStreamingBlackGlass.xap"/>
-
This is the reference to the XAP. If your XAP is hosted on a different server, you'll need to supply an absolute URL (e.g. <param name="source" value="
http://myserver.mydomain.com/myVDir/myXAP.xap" />). Otherwise, the value of this parameter is interpreted as relative to the html file.
-
<param name="initparams" value='autoplay=True,muted=False,stretchmode=0,displaytimecode=False,playlist=<playList><playListItems><playListItem title="Big%20Buck%20Bunny" description="" mediaSource="Big%20Buck%20Bunny.ism\Manifest" adaptiveStreaming="True" thumbSource="Big%20Buck%20Bunny_Thumb.jpg" frameRate="24.0000384000614" ></playListItem></playListItems></playList>' />
-
-
If your media is hosted on a server a different domain, you'll need a clientaccesspolicy.xml file on the media server's root for everything to work correctly. Look
here for details.
Hope this helps and let us know if you have any further questions.
--John