开发者

Smooth streaming player with Silverlight, is it possible to set the mediaurl to relative path?

开发者 https://www.devze.com 2023-02-20 02:40 出处:网络
Here is my code <div id=\"silverlightControlHost\"> <object data=\"data:application/x-silverlight-2,\" type开发者_StackOverflow中文版=\"application/x-silverlight-2\" width=\"70%\" height=\"

Here is my code

 <div id="silverlightControlHost">
                    <object data="data:application/x-silverlight-2," type开发者_StackOverflow中文版="application/x-silverlight-2" width="70%" height="70%">
                    <param name="source" value="Video/SmoothStreamingPlayer.xap"/>
                    <param name="onError" value="onSilverlightError" />
                    <param name="background" value="white" />
                    <param name="minRuntimeVersion" value="4.0.50401.0" />
                    <param name="autoUpgrade" value="true" />
                        <param name="InitParams" value="selectedcaptionstream=textstream_eng,mediaurl=http://servername/Video/video.ssm/manifest" />
                      <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
                        <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
                      </a>
                    </object>
                    </div>

Question: Is it possible to have mediaurl attribute set to a relative path? So instead of

http://servername/Video/video.ssm/manifest

It would be something like

/Video/video.ssm/manifest

I tried it as is, but it errored out.

Thanks!


No, the media must be served directly via IIS

0

精彩评论

暂无评论...
验证码 换一张
取 消