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

Finished notification after a video stopped playing in fullscreen mode

Last post 08-29-2008, 7:38 AM by davidtjudd. 8 replies.
Sort Posts: Previous Next
  •  02-18-2008, 6:27 AM 6654

    Finished notification after a video stopped playing in fullscreen mode

    I'm trying to skip the finished-notification that appears after a video has stopped playing in fullscreen mode. I want my application to go back 1 page in the history, or in other words, automatically click 'Done'.
    I have managed to detect that the video has stopped and I can succesfully call the session.BackPage method, but Media Center remains showing the finished notification until the user clicks 'Done'.
    Can I tell Media Center to skip the finished-notification or somehow make Media Center respond as if 'Done' has been clicked?



  •  02-18-2008, 11:33 AM 6655 in reply to 6654

    Re: Finished notification after a video stopped playing in fullscreen mode

    You could try sending a "return" to the page using a "SendKeys" type method and see if that works.

    Cheers,
    Andrew

  •  02-19-2008, 1:03 AM 6664 in reply to 6655

    Re: Finished notification after a video stopped playing in fullscreen mode

    Thanks Andrew!
    System.Windows.Forms.SendKeys.SendWait("~"); does the trick.


  •  02-19-2008, 9:46 PM 6681 in reply to 6664

    Re: Finished notification after a video stopped playing in fullscreen mode

    Try the ApplicationContext.ReturnToApplication Method -- see http://msdn2.microsoft.com/en-us/library/bb188919.aspx
    Charlie Owen (Microsoft)
  •  02-20-2008, 1:25 AM 6684 in reply to 6681

    Re: Finished notification after a video stopped playing in fullscreen mode

    Thanks Charlie, good to know that this can be done from within the media center programming model, Andrews solutions worked as well but felt more like a workaround.

  •  08-28-2008, 9:55 PM 8291 in reply to 6684

    Re: Finished notification after a video stopped playing in fullscreen mode

    I can't seem to get this to work in v5.1. Any ideas?

    --snip--

    if (host.MediaCenterEnvironment.MediaExperience.IsFullScreen)

    {

    host.ApplicationContext.ReturnToApplication();

    }

  •  08-29-2008, 2:07 AM 8295 in reply to 6684

    Re: Finished notification after a video stopped playing in fullscreen mode

    ruthjes:
    Thanks Charlie, good to know that this can be done from within the media center programming model, Andrews solutions worked as well but felt more like a workaround.

    I'd say most Media Center development = workaround! :)

  •  08-29-2008, 3:53 AM 8297 in reply to 8291

    Re: Finished notification after a video stopped playing in fullscreen mode

    davidtjudd:
    I can't seem to get this to work in v5.1. Any ideas?

    Guess what - it is (like so much else) broken in Fiji/TV-Pack.


  •  08-29-2008, 7:38 AM 8301 in reply to 8297

    Re: Finished notification after a video stopped playing in fullscreen mode

    Charlie, can you help me out here? The SendKeys hack doesn't even work. I really do not want to try and slop something together like P/Invoking over to ehshell to avoid having a frozen screen after a video finishes.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems