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

how to shutdown full screen video

Last post 05-11-2009, 6:12 PM by krusty. 4 replies.
Sort Posts: Previous Next
  •  05-05-2009, 8:10 PM 9220

    how to shutdown full screen video

    When I play a video file using the full screen video command

    host.MediaCenterEnvironment.MediaExperience.GoToFullScreen();

    When the user chooses "stop" with the remote, a page is displayed by the video player that gives the user options to Restart, Resume, Delete, etc.

    Is there anyway to stop this from being displayed?  When the user hits stop, I just want it to go back to my application's page, not display this screen.  I especially don't what the user to have the "delete" option.  The only way I have found to make this page go away is to ask playmedia to play a non-existant Dvd, and even then it shows the option page briefly before returning to my app. 

    So, is there an easy way to programmatically shutdown the full screen video page and go back to my apps page?

    Before anyone recommends it:  I am not interested in embedding a scaled video on a page of my own, so that's not an option.  I need to use GoToFullScreen.

  •  05-07-2009, 8:54 AM 9222 in reply to 9220

    Re: how to shutdown full screen video

    Anyone?  Is no one answering because there is no way to shutdown full screen video from inside the program, or because no one understands the question?
  •  05-08-2009, 2:07 AM 9223 in reply to 9222

    Re: how to shutdown full screen video

    Hello,

    I'm 99% certain that you can't do that... at least not with your running application in a back page because it looses access rights over the front page and to some media center objects.

    A possibility is to create another application (a background application type) and capture those specific events and then do whatever you want to do but i don't know if it will work and also a background application as (more or less) a launch delay of 6 seconds.
    If you want to go back to your application you should use a mutex to be certain that it is still running.

    Best Regards
  •  05-09-2009, 10:10 AM 9224 in reply to 9223

    Re: how to shutdown full screen video

    Also try experimenting with the ReturnToApplication method to see if that combined with watching for a playstate change works.

    Cheers,
    Andrew
  •  05-11-2009, 6:12 PM 9225 in reply to 9224

    Re: how to shutdown full screen video

    ReturnToApplicatoion works perfectly, thanks!
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems