更改ism文件时Silverlight播放器空白
我正在尝试在我正在建立的网站上获得 silverlight 流畅的流媒体,它与大巴克兔子示例代码一起工作正常,如下所示:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%" id="Object2">
<param name="source" value="SmoothStreamingBlackGlass.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="initparams"value='autoplay=False,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>' />
<a href="http://go2.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go2.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
</object>
<iframe style="visibility:hidden;height:0;width:0;border:0px"></iframe>
但是如果我像这样更改代码,则在渲染页面时我只会得到一个空白区域而不是影片剪辑。
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%" id="Object2">
<param name="source" value="SmoothStreamingBlackGlass.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="initparams"value='autoplay=False,muted=False,stretchmode=0,displaytimecode=False, playlist=<playList><playListItems><playListItem title="Robotica_1080" description="" mediaSource="Robotica_1080.ism/Manifest" adaptiveStreaming="True" thumbSource="Robotica_1080_Thumb.jpg" frameRate="24.0000384000614" ></playListItem></playListItems></playList>' />
<a href="http://go2.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go2.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
</object>
<iframe style="visibility:hidden;height:0;width:0;border:0px"></iframe>
有什么想法吗?我正在使用 Encoder 3 在 microsoft smooth Streaming 上对 720p 进行编码设置,并使用所有默认设置。
I am trying to get silverlight smooth streaming going on a site I am bilding and it works fine with the big buck bunny sample code which looks like this:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%" id="Object2">
<param name="source" value="SmoothStreamingBlackGlass.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="initparams"value='autoplay=False,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>' />
<a href="http://go2.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go2.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
</object>
<iframe style="visibility:hidden;height:0;width:0;border:0px"></iframe>
but if i change the code like this i only get a blank area when the page is rendered instead of the movie clip.
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%" id="Object2">
<param name="source" value="SmoothStreamingBlackGlass.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="initparams"value='autoplay=False,muted=False,stretchmode=0,displaytimecode=False, playlist=<playList><playListItems><playListItem title="Robotica_1080" description="" mediaSource="Robotica_1080.ism/Manifest" adaptiveStreaming="True" thumbSource="Robotica_1080_Thumb.jpg" frameRate="24.0000384000614" ></playListItem></playListItems></playList>' />
<a href="http://go2.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go2.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
</object>
<iframe style="visibility:hidden;height:0;width:0;border:0px"></iframe>
Any ideas? I am using Encoder 3 to do the encoding set on microsoft smooth streaming for 720p with all the default settings.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看您是否可以访问http://your_server_url/whatever_folder/Robotica_1080.ism/Manifest 在您的浏览器中并确保您看到 Manifest XML。
然后,尝试在 Source 属性中使用 Robotica_1080.ism/Manifest 的完整/绝对 URL。这将排除播放器位置和 ISM 文件位置之间的相对路径问题。
完成后,使用 Fiddler2 监视 silverlight 播放器和服务器之间的流量,以识别任何进一步的问题。
See if you can go to http://your_server_url/whatever_folder/Robotica_1080.ism/Manifest in your browser and make sure you see the Manifest XML.
Then, try using the full/absolute URL to the Robotica_1080.ism/Manifest in your Source property. This will rule out relative path issues between the location of your player and the location of the ISM file.
Once that is done, use Fiddler2 to monitor the traffic between your silverlight player and your server to identify any further problems.