The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

null MediaExperience in Windows 7 RTM

Last post 12-18-2009, 3:47 AM by sambo99. 5 replies.
Sort Posts: Previous Next
  •  11-17-2009, 4:51 PM 9442

    null MediaExperience in Windows 7 RTM

    In our plugin we use the PlayMedia api to play Videos

    AddInHost.Current.MediaCenterEnvironment.PlayMedia(Microsoft.MediaCenter.MediaType.Video, path, false)

    In Vista, consistently, after this call we have a media experience ready for us in:
    AddInHost.Current.MediaCenterEnvironment.MediaExperience

    However in Window 7 stuff is a bit more erratic and is seem that MediaExperience goes to la-la land after a certain amount of time or certain random actions.

    How do I consistently play a video and go full screen?

    Anyone else seen this?
    - Sam
    samsaffron.com
  •  11-17-2009, 11:08 PM 9443 in reply to 9442

    Re: null MediaExperience in Windows 7 RTM

    I haven't seen MediaExperience not be available, but I have seen issues where the GoToFullScreen just doesn't work.

    Cheers,
    Andrew
  •  11-18-2009, 1:04 PM 9455 in reply to 9443

    Re: null MediaExperience in Windows 7 RTM

    Im thinking it must be something we did that aggravated the situation.

    I removed some code that triggered ui updates between the two operations and stuff seems a bit more stable.
    - Sam
    samsaffron.com
  •  12-14-2009, 5:40 AM 9507 in reply to 9455

    Re: null MediaExperience in Windows 7 RTM

    Have you guys worked out a way to reliably GoToFullScreen?
  •  12-14-2009, 11:06 PM 9508 in reply to 9507

    Re: null MediaExperience in Windows 7 RTM

    I put a 200ms sleep in after executing PlayMedia before calling GotoFullScreen which seems to work.

    Cheers,
    Andrew
  •  12-18-2009, 3:47 AM 9513 in reply to 9508

    Re: null MediaExperience in Windows 7 RTM

    No luck, this still seems to happen to my users. Any word from MS about a fix or at least some better ways to work around, the remoting channel goes bust and there is no way re-establish it.


    Perhaps on play I should trigger starting up a new plugin instance that will have a fresh mediaexperience, seems horrid though

    This has been the case ever since tvpack ....
    - Sam
    samsaffron.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems