MediaMetaData command not working properly

Dec 29, 2010 at 7:50 PM

OK, so here's the scenario:

1) Start up Media Center

2) Start Live TV -- MediaMetaData will throw an exception because LiveTV doesn't return any metadata. That's good, that's what it's supposed to do.

3) Stop Live TV, start playing a recorded TV program.  MediaMetaData will show the recorded TV show info. Good.

4) Stop the recorded TV program, start Live TV again. MediaMetaData shows the metadata from the recorded TV show you were just watching, doesn't throw an exception like it should.

5) Stop everything completely. MediaMetaData STILL shows the recorded TV program info.

It appears that for some reason that MediaCenterEnvironment.MediaExperience.MetaData is not getting set to null upon starting up Live TV like it's supposed to. If you play different recorded TV shows, the metadata updates properly ... it's just that it never gets set back to null once you play a recorded TV show (possibly other things such as music, I haven't tested yet). According to http://msdn.microsoft.com/en-us/library/bb189336.aspx, MetaData is supposed to be null if the current experience is Live TV.

This is under Windows 7, btw.  Has anyone else experienced this?  It's extremely frustrating because that seemed to be the only way to detect if Live TV was playing or not ... now I'm not sure what to do to detect Live TV vs. a recorded program, music, etc.