Click to Rate and Give Feedback
MSDN
MSDN Library
Live Services SDK
 SilverlightStreamingMediaPlayer Con...

  Switch on low bandwidth view
Windows Live
SilverlightStreamingMediaPlayer Control

This topic describes the parameters and default values created when you add the SilverlightStreamingMediaPlayer control to enable Silverlight™ Streaming media content on a Web page.

<live:SilverlightStreamingMediaPlayer 
      ID="id" 
      Height="height" 
      MediaSourceProvider="mediasourceprovider"
      Width="width"> 
</live:SilverlightStreamingMediaPlayer>

The parameters shown in the syntax section and the beginning of the parameters table are the parameters created when dragging the control from the Toolbox and dropping it on a Web page. The default values in the description are also those created when dragging the control from the Toolbox and dropping it on a Web page.

Parameter Description

ID

Required. The unique identifier for the control on the Web page. The default value is SilverlightStreamingMediaPlayer1.

Height

Optional. The height of the control on the page. The default value is 240px.

MediaSourceProvider

Required. The provider you selected when you dragged and dropped the control onto your Web page. There are two valid values:

Other means the control gets the MediaSource from a URL, such as a file on your computer. The supported formats are MP3, WMA, and WMV.SilverlightStreaming means the control gets the MediaSource from a Silverlight Streaming account.

The default value is SilverlightStreaming.

Width

Optional. The width of the control on the page. The default value is 320px.

MediaSource

Required. The URL you selected when you dragged and dropped the control onto your Web page.

AutoPlay

Optional. Whether to start playing the media file as soon as the page is loaded.

Note:
As with any control, the SilverlightStreamingMediaPlayer control parameters can be retrieved or set in server-side code and retrieved in client-side code. What makes the SilverlightStreamingMediaPlayer control special is that these parameters also can be set in client-side code. The only additional work required is if you update the look of the control, remember also to update the DOM.

You have three ways to play streaming media in a Web page. You can specify a URL in the control, such as a local .wmv file on your computer, or specify a URL dynamically through a client-side function (which, again, could be a local .wmv file on your computer), or you can specify a media source through a Silverlight Streaming account. These methods are discussed in the section Dynamically Playing a Media File of Using the Windows Live Tools Controls.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker