如何在其他silverlight应用程序中使用编码器播放器设计? [英] How to use Encoder player designs in other silverlight apps?

查看:54
本文介绍了如何在其他silverlight应用程序中使用编码器播放器设计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在其他Silverlight项目中使用Expression Encoder中的播放器设计,即不仅仅从Encoder输出默认网站,将播放器合并到另一个Silverlight应用程序中(并在Blend中使用它)? 如果
我创建了一个带编码文件的默认编码器站点我假设这不是一次性操作,即我需要代码来剪切和粘贴创建的默认html页面中的代码?

How do I use the player designs in Expression Encoder in other Silverlight projects, i.e. rather than just outputting the default site from Encoder, incorporate the player into another Silverlight application (and work with it in Blend)?  If I created a default Encoder site complete with encoded files I assume this would not be a one shot operation, i.e. I would need code to cut and paste code from the default html page created?

推荐答案

一种简单的方法是制作自定义播放器模板。 您可以使用Blend 或Visual Studio 为此。

A simple way to do this is to make a custom player template.  You may use either Blend  or Visual Studio for this.

在EE中 - 找到"模板"面板,然后选择您想要自定义播放器的模板。 然后找到"齿轮"。 "模板"中的图标面板和"齿轮"下拉菜单。图标选择"编辑模板副本"   - >
" Expression Blend" 或"Visual Studio"

In EE -- find the "Templates" panel and select the template you want to base your custom player upon.  Then locate the "gear" icon in the "templates" panel and the drop down menu off the "gear" icon select the "edit copy of template in"  -> "Expression Blend"  or "Visual Studio"

此命令将复制模板源代码并使用模板解决方案文件启动Blend或Visual Studio。 然后,您可以自定义模板外观(在Blend中最简单)或模板逻辑(在Visual Studio中最简单) 
以适合您的应用需求的任何方式。

This command will make a copy of the template source code and launch either Blend or Visual Studio with a template solution file.  You make then customize the template appearance (easiest in Blend) or template logic (easiest in Visual Studio)  in any manner that suits your application needs.

这是一篇博文,我在一段时间内提供了有关如何调试模板源代码的详细信息。 

http://blogs.msdn.com/b/randyoakley/archive/2009/10/07/how-to-debug-expression-encoder-3-templates-with-smoothstreaming-content。 ASPX
功能; 它是为EE3编写的,但对于EE4来说仍然是正确的 - 除了使用EE4的"WebServer"之外。包含
的EE4功能更强,无需设置IIS服务器来调试使用流畅内容的应用程序。

Here is a blog post I made a while back with details on how to debug the template source code.  http://blogs.msdn.com/b/randyoakley/archive/2009/10/07/how-to-debug-expression-encoder-3-templates-with-smoothstreaming-content.aspx   It was written for EE3 but is still mostly correct for EE4 -- except that with EE4 the "WebServer" included with EE4 is more capable and eliminates the need to setup a IIS server for debugging applications that use smooth streaming content.

 


这篇关于如何在其他silverlight应用程序中使用编码器播放器设计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆