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

Having trouble with AddInHost.Current.MediaCenterEnvironment.PlayMedia() method :(

Last post 08-19-2010, 11:50 PM by thus. 1 replies.
Sort Posts: Previous Next
  •  08-19-2010, 8:23 AM 9829

    Having trouble with AddInHost.Current.MediaCenterEnvironment.PlayMedia() method :(

    I have n weird problem with AddInHost.Current.MediaCenterEnvironment.PlayMedia() method.

    When the application starts, the first video is commenced by the constructor method, and I can watch.

    Then if I select another video from the menu, the current playing video is not showing( it is normal :) ) but I can't see the new video? I am not getting an error.

    This is the code I only use:

    AddInHost.Current.MediaCenterEnvironment.PlayMedia(
    MediaType.Video,
    myVideoLink,
    false
    );

    Do I have to initialize the AppInHost? Which steps I have to follow to show the videos to the user in sequence?

    Thank you for your help..
  •  08-19-2010, 11:50 PM 9831 in reply to 9829

    Re: Having trouble with AddInHost.Current.MediaCenterEnvironment.PlayMedia() method :(

    Ahh sorry guys it is my mistake..

    I checked the video link and realized that the second video link was wrong.. :) Now everything is working properly.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems