Welcome to MSDN Blogs Sign in | Join | Help

Time Travel with Media Center

One of the features I've wanted for a while now in Media Center is the ability to easily jump around within media.  I have a bunch of family home videos on my machine, and it can be frustrating to navigate to particular moments that I want to show to family and friends.  To compensate for this, I wrote a plug-in, PositionChangerAddIn, that allows me to use the remote control for Media Center to navigate to different positions within the currently playing media (recorded TV, video, audio, etc.), using the number buttons on the remote control to enter time codes that Media Center then jumps to, as well as using the arrow keys to set and jump to bookmarks in the media.  Some folks asked me how I implemented it and if I could share the add-in with them, so I decided to write an MSDN article about it.  The article went live today at http://msdn.microsoft.com/smartclient/default.aspx?pull=/library/en-us/dnxpmce/html/positionchangeraddin.asp (new article at http://msdn2.microsoft.com/en-us/library/bb643809.aspx). In addition to learning all about how the add-in was implemented (and how add-ins are implemented in general for Media Center), from that page you can download both the source code for the add-in and a complete installer to get up and running with it.  Directions for using the add-in are included in the article.

Hope you like it.  If you do, please let me know by giving the article a good rating... if it does well enough, I might be inclined to write some more about MCE development ;)

Enjoy,
Steve

ps Note that the add-in is only for use with Media Center 2005.  It will not work with previous versions, and it might not work with future versions, at least not without some modifications here and there.

Published Tuesday, April 19, 2005 7:15 PM by toub
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Thursday, April 21, 2005 5:37 AM by andyBlog

# Media Centre add in

Media Centre add in
Thursday, April 21, 2005 7:49 AM by John

# re: Time Travel with Media Center

Great article. I was just wondering if the method you used to expose the graph MCE uses for playback could be used the edit the graph to allow the ffdshow filter to be added to the graph?
Thursday, April 21, 2005 10:42 AM by Stephen Toub

# re: Time Travel with Media Center

Theoretically, yes. Should you, well, probably not ;)

It's one thing to look at the graph, but changing it might put it into a state that MCE doesn't expect, which could very well cause ehshell to crash.

That said, try it out and see what happens. My only warning would be that anything you do here would obviously be unsupported.
Friday, April 29, 2005 2:18 PM by vern

# re: Time Travel with Media Center

Is there a place to download the actual add-in, without going through compiling the source?
Friday, April 29, 2005 2:25 PM by toub

# re: Time Travel with Media Center

An installer is included along with the source in the download for the article. Just run that installer... if you don't want to tweak the source at all, you don't need to compile anything.
Friday, April 29, 2005 5:10 PM by vern

# re: Time Travel with Media Center

Thanks!

P.S. Do you know if there is a quick way to add or move a shortcut for an app to the main menu in MCE?

I previously used MCE Workshop or MCE Customizer (can't remember), but don't want to install other software for one purpose.

THANKS AGAIN!
Tuesday, May 17, 2005 3:01 PM by Yves Bélanger

# re: Time Travel with Media Center

It seams that the french version of MCE 2005 is
not supported... :-(

When I try to install it says something like
"Can be installed only on MCE 2005 or newer".

That's what I have...
Wednesday, May 18, 2005 8:54 PM by toub

# re: Time Travel with Media Center

The actual add-in should work fine with any localized version of MCE 2005... the problem you're having seems to be with the installer. The installer uses the RegisterAddIn.dll from the MCE SDK, and the code in that DLL is what's checking to make sure that the version of MCE is 2005. Either there's something screwy with your system or there's something wrong with that DLL. The good news is that you should be able to install the add-in manually without using the installer. You'll need to copy the add-in DLL (PositionChangerAddIn.dll) to a folder on your computer, along with PositionChangerAddInReg.xml file. Use gacutil to install the DLL into the GAC, and then use the MCE RegisterMCEApp.exe tool with the XML file to let MCE know about the add-in. I'd suggest reading the MCE SDK for more information about manually installing add-ins.

Good luck,
Steve
Saturday, August 13, 2005 11:37 AM by Michael

# re: Time Travel with MCE - Trap Remote

Thanks for a very good article!

What if I would like to trap a remote button wherever the user is in the MCE?

The KeyboardHook as well as the Intercept Window implementation won't trap pressed remote buttons when the user is within a launched HTML application.

Is it possible to trap remote buttons for this situation aswell (from the same background add-in)? If no, could I do it in another way?
Tuesday, August 23, 2005 6:29 PM by Reinhard Brongers

# re: Time Travel with Media Center

Really great article (and the 'fun with DVR-MS' article as well)! And maybe you also know the answer to a burning question: Why is the playrate property not working as advertised in the SDK (and in your article)? I cannot get MCE to pause and continue through my background plugin, and I am not the only one (http://www.ureader.com/message/1437901.aspx) ... I know you're not the helpdesk or anything, but since you are MS related, and you are clearly knowledgable about the subject, maybe you or someone in your network have the answer?
Thanks a lot and keep up the good work!
Regards,
Reinhard
Thursday, August 25, 2005 4:44 PM by Oliver

# re: Time Travel with Media Center

I am using your program as a template to develop my add-in which will communicate with my custom USB control. My question is how to navigate the mce menu through WM_KEYDOWN/UP window messages with VK_UP key code embedded.
These key messages were delievered to the MCE window ( checked via spy program ) but has no impact at all. Could you give me any help?
Monday, December 12, 2005 5:37 PM by Ken P

# re: Time Travel with Media Center

Your time travel add-in is a great idea! It works great, with one problem (I have MCE 2005 with rollup 2, in case it matters)

When watching a recorded show, I often need to change the Zoom, which is done by hitting Info on the remote, which brings up the menu, then down clicking to the Zoom choice. The add-in intercepts the down click and thinks it is a bookmark click. Any thoughts on how that could be fixed?
Tuesday, December 13, 2005 12:13 PM by Ken P

# re: Time Travel with Media Center

SORRY!!! With further reading, I realized that I can disable the bookmarking. I may even try to configure another button for the bookmarking feature if I get ambitious!! Thanks
Tuesday, October 03, 2006 10:53 AM by andy vt's blog

# Why don't TV shows have meta data?

It's a common problem that MCE doesn't reflect the meta data of the currently playing show in the API. ...

Friday, December 08, 2006 7:28 PM by Brad

# re: Time Travel with Media Center

Stephen, any chance you will be updating this for Vista MCE?  Thanks.

Monday, December 11, 2006 11:30 AM by toub

# re: Time Travel with Media Center

Hi Brad,

Yes, I do plan to, or to at least investigate what will be necessary to upgrade it appropriately.  Hopefully by the new year.

-Stephen

Thursday, January 04, 2007 12:13 AM by Stephen Toub

# Position Changer Add-In updated for Media Center in Windows Vista

Back in early 2005, I wrote an article for MSDN on implementing add-ins for Windows XP Media Center Edition

Sunday, January 14, 2007 1:42 PM by Matt

# Extenders?

I have installed the rollup2 version of this addin and I love the idea, I really do. I so need this functionality as I'm coming from a ReplayTV network to the MCE world and not being able to jump through shows more reliably is a serious problem

That being said, I have installed this add-in on the media center pc. When I connect with my extender (this case is the 360) I can see mention of the add-in in the "manage more programs" area of settings. That sounds good. Seems like it installed and is available to my extender. Great.

I then go play a "video" (mpg). While it's playing I press the right arrow key (nothing pops up) and then 500 and wait. Nothing happens. Okay, right arrow/500/left arrow... nothing.

I've never seen the plugin work, so I'm not certain of what interface I should be experiencing, but totally nothing seems to be happening. What am I missing?

I can't test is on the PC as I remote desktop to manage that server and I can't play videos over RD.

Any help would be greatly appreciated.!

Saturday, March 17, 2007 6:14 PM by Zeev

# Where is the .msi installer??

Seems like the .msi installer has disappeared, only the source code is in the zip. Where can I get the msi for Visa??

Wednesday, June 20, 2007 2:27 AM by Sash

# re: Time Travel with Media Center

I am trying to figure that out as well. Earlier I managed to get the contents of the zip file but did not know how to initiate the function. I am using a non microsoft remote. Imon remote from www.soundgraph.com is what I use. the imon remote has two fast forward controls.

http://www.soundgraph.com/Eng_/Products/imon21.aspx?topMenu=2&subMenu=1&leftMenu=21

The RR FF on one top does nothing with avi files

The bottom one skip the microsoft default 29sec and rw 7 secs which I would like to keep. the buttons on top is what I would like to assign the function for your addin. So if I need to jump within a file to a certain location use top RR FF buttons. If I need quick skips use the bottom RR FF buttons.

thanks

Saturday, September 22, 2007 7:46 PM by toub

# re: Time Travel with Media Center

The new version of the article is at: http://msdn2.microsoft.com/en-us/library/bb643809.aspx

Friday, February 08, 2008 12:29 PM by Gis

# re: Time Travel with Media Center

Sorry, but the code nor the installer are to be found somewhere. Such a basic function in MCE is really a big need and there's not even a decent installer.

I'm loosing my time here around to find just where it is !

Really, do I have to write  the code with copy and paste from the article ???

A "gone out of patience" mce user

Friday, February 08, 2008 12:35 PM by toub

# re: Time Travel with Media Center

Friday, May 23, 2008 7:14 AM by mirage hotel

# re: Time Travel with Media Center

alanya merkezin de en uygun tatil için bizi arayınız size yarımcı olalım acenta ve ferdi olarak ta hava alanından servisimiz vardır

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker