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

Windows Mediaplayer - how to switching the current song within a playlist

Last post 06-09-2009, 11:53 PM by tom. 0 replies.
Sort Posts: Previous Next
  •  06-09-2009, 11:53 PM 9260

    Windows Mediaplayer - how to switching the current song within a playlist

    Hi there,

    I have got the following code (striped down to the main parts)

    WindowsMediaPlayer _windowsMediaPlayer = "initialized for the current session"
    IWMPMedia item  = "a valid track within the current playlist";

    // set the current track
    _windowsMediaPlayer.controls.currentItem = item;

    // play it..
    _windowsMediaPlayer.controls.play();

    while this is working at a pc, it won't at the XBox. The "play()" throws an exception "hardware not available".

    Is there another way to play a specific track within the current playlist?

    Kind regards,
    Sörnt

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems