远程控制Windows Media Center [英] Remote controlling Windows Media Center

查看:215
本文介绍了远程控制Windows Media Center的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣构建一个Android设备的遥控应用程序,以允许他们控制Windows 7的窗口媒体中心。如何发送命令到媒体中心,如果他们来自物理遥控器?让我们说,例如我想把电视改为频道67,我该怎么做那个代码明智?我喜欢在C#中编码,但对C ++开放

解决方案

我的方法是写一个自定义媒体Center AddIn(下载Media Center SDK)并实现两个非常简单的界面: IAddInModule,IAddInEntryPoint
有几个小箍,你需要跳过为了托管它包括GAC的加载项和使用RegisterMCEApp.exe注册,但Googling这些都很简单。 p>

一旦你进入这个阶段,您将看到您的加载项出现在Media Center的Extra页面,然后您可以选择将加载项作为WCF服务(或者您的愿望),它提供了许多远程管理的机会。



通过Media Centers SDK注入的AddInHost类型,您可以执行主机命令as:

  Host.MediaCenterEnvironment.MediaExperience.Transport.PlayRate = PlayRate.Play 



希望这有助于我,我还是很自己学习绳索。


I am interested in building a remote control app of sorts for android devices to allow them to control windows media center on windows 7. How can I send commands to media center as if they were coming from a physical remote? Lets say for instance I wanted to change the TV to channel 67, how would I do that code wise? I would prefer to do the coding in C# but am open to C++

解决方案

My approach so far has been to write a custom Media Center AddIn (download the Media Center SDK) and implement the two very simple interfaces: IAddInModule, IAddInEntryPoint. There are a couple of minor hoops that you'll need to jump through in order to host it which include GAC'ing your add-in and registering it using RegisterMCEApp.exe but Googling these makes it quite simple.

Once you have got to this stage you'll see your Add-in appear in the Extra's page in Media Center and then you have the option to host the add-in as a WCF service (or however you so desire) which provides many opportunities for remote management.

With the injected AddInHost type from Media Centers SDK you have the ability to perform host commands such as:

Host.MediaCenterEnvironment.MediaExperience.Transport.PlayRate = PlayRate.Play

Hope this helps, I'm still very much learning the ropes here myself.

这篇关于远程控制Windows Media Center的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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