If you look at my complete background app (for VMCMusicLister you will see how I access the vmcMetaData = vmcHost.MediaCenterEnvironment.MediaExperience.MediaMetadata; to get at info on a music track. Although it's a different object for tv, the Microsoft.MediaCenter.Samples.MediaState Namespace should provide some pointers, e.g.
MediaState.TV Property
Gets the live TV session
and just noted
TVSessionState Class
Contains the TV (live, recorded, recording) session state information.
Whether it contains the filename though? Might have to go about it a round about way like i did to get the music filename!
Gordon: Has reached the end!