« Previous Next »

Thread: IIS Smooth Streaming Feedback Thread

Last post 02-27-2009 4:03 PM by samzhang. 21 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (22 items) < Previous 1 2

Sort Posts:

  • 02-27-2009, 4:43 AM In reply to

    • tjader
    • Not Ranked
    • Joined on 02-26-2009, 2:48 PM
    • Posts 3

    Re: IIS Smooth Streaming Feedback Thread

    Yes, the ism file is colocated with the other files. the problem is that as soon as I try to reference the file in Silverlight player with a url in the form of www.mydomain.com/myfile.ism instead of just myfile.ism as in the sample, it fails. It is on a webserver, not a media server, sorry for not being clear. With media server I mean our server were we are hosting the media files and not the server were the web pages exist serving the clients.

  • 02-27-2009, 1:46 PM In reply to

    Re: IIS Smooth Streaming Feedback Thread

    Is it that your client xap file comes from a different URL than your ism file? If that's the case, I think you're hitting the corss-domain restriction in Silverlight. You either need to move the xap file to the same server as your media contents or setup cross-domain policies.

    -Sam
  • 02-27-2009, 1:47 PM In reply to

    Re: IIS Smooth Streaming Feedback Thread

    Correction: 

    Is it that your client xap file comes from a different domain than your ism file?

    -Sam
  • 02-27-2009, 2:08 PM In reply to

    • jboch
    • Not Ranked
    • Joined on 10-27-2008, 10:39 PM
    • Posts 9

    Re: IIS Smooth Streaming Feedback Thread

    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>' />
      • This entry gets interpreted by the logic in the XAP loaded into Silverlight. To change media location (if, for example, the media is on a different server), replace the .ism entry with an absolute path (e.g. mediaSource="http://myserver.mydomain.com/MyVDir/MyPresentation.ism/Manifest")
      • 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

  • 02-27-2009, 3:29 PM In reply to

    • tjader
    • Not Ranked
    • Joined on 02-26-2009, 2:48 PM
    • Posts 3

    Re: IIS Smooth Streaming Feedback Thread

    jboch:

     

      • This entry gets interpreted by the logic in the XAP loaded into Silverlight. To change media location (if, for example, the media is on a different server), replace the .ism entry with an absolute path (e.g. mediaSource="http://myserver.mydomain.com/MyVDir/MyPresentation.ism/Manifest")
      • 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.

    This is exactly what I want and try to do but it's not working. I'm testing on same machine and domain so it shouldn't be cross domain. If I just make a .wmv file and put that in the same place and use that url, the player works. And it works when the player i in the same dir as in the sample and i'm not using the absolute path. Well I guess I have to try more...

  • 02-27-2009, 4:01 PM In reply to

    Re: IIS Smooth Streaming Feedback Thread

    One thing to note here is that for .wmv files that are played back directly by Silverlight runtime, cross-domain restriction is not enforced. Smooth streaming files (.ism) are handled by a Silverlight extension called Media Stream Source which is subject to cross-domain restriction. My hunch is that it's still someting related to cross-domain issue.

    -Sam
  • 02-27-2009, 4:03 PM In reply to

    Re: IIS Smooth Streaming Feedback Thread

    Another way to diagonise this issue is to turn on Failed Request Tracing on IIS7 and see whether the server has received the client's .ism request.

    -Sam
Page 2 of 2 (22 items) < Previous 1 2
Microsoft Communities