Streaming a Silverlight Media Application from Silverlight Live

Discussion in 'Silverlight' started by jrahma, Sep 8, 2007.

  1. what about streaming live froma camera (live encoding)?
     
  2. Streaming a Silverlight Media Application from Silverlight Live

    1)Download Microsoft Expression Media Encoder( http://www.microsoft.com/expression/products/download.aspx?key=encoder)

    2) Open Microsoft Expression Media Encoder.

    3) Click File -> Import and then select the media file that you want to stream.

    4) On the settings tab, choose the Video format. You may want to select a format which is less than or equal to 700 Kbps. This is due to the fact that, video files hosted at Silverlight Streaming should be less than or equal to 700 Kbps. You have to follow some other criteria as well.

    a) Video file must be smaller than 22mb.

    b) Run time for any video file should be shorter than 10 minutes.

    5) On the Output tab, choose the Template that you want to use to stream your video. When you choose a pre-defined template, Media Encoder will automatically provide you with all controls that are usually found in a Windows Media Player (such as Play button, Pause button, slider control, volume control, file download progress bar control, etc).

    6) Click File -> Encode.

    [Note: By default you can see the encoded video file's under: My Documents -> Expression -> Expression Media Encoder -> Output.]

    7)Silverligt streaming needs the a manifest.xml file which describes the application to the hosting service,which will be something as follows:

    <SilverlightApp>
    <loadFunction>StartWithParent</loadFunction>
    <jsOrder>
    <js>MicrosoftAjax.js</js>
    <js>PreviewMedia.js</js>
    <js>EmePlayer.js</js>
    <js>player.js</js>
    <js>StartPlayer.js</js>
    </jsOrder>
    </SilverlightApp>
    (Note:<jsOrder> has all the javascript files created by the encoder in your Output folder,except Silverlight.js)

    8)Create a zip file using the files[except the *.csproj,silverlight.js] in the Output folder,including the created menifest.xml.[Note: zip of the files and not the folder containing the files] .

    9)Go to http://silverlight.live.com/ and sign in using your Silverlight streaming account or get one for FREE by creating a new account for FREE at https://silverlight.live.com/account/create.aspx.

    10)Click the 'Manage Applications' link and then click 'Upload a Silverlight Application.' Once uploaded successfully,follow the instructions on the following screens.

    Sample on DiscountASP.net : http://daspstaff00.web120.discountasp.net/silver/silverlightstream/default.aspx

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page