Alright, so I am getting ready to sit down and prepare for a InfoPath presentation that I am doing tomorrow evening and I can't even queue some songs up on the MCE. You would think that when you are developing something like this, that you would allow users to queue songs up on the fly. Especially when the API exposes the call. Looks like an opportunity to do some MCE programming.
The AddSongToQueue method adds a specified song to the user's queue for audio playback.
Syntax
MediaCenter.AddSongToQueue(sUrl)
Parameters
sUrl
(Required) A String that specifies the location of the audio file to be added.
Remarks
Media Center enables you to dynamically create a queue of audio files for the user to play back in order. The queue starts with the currently playing song. If this method is invoked while no song is currently playing, then no queue exists, so Media Center will simply play the song indicated (that song then, in effect, becomes a "queue" of one song). If the method is invoked while a queue exists, Media Center will add the song to the end of the queue to play after any other songs in the queue finish playing.
If the user starts a queue in Windows Media Player, that queue will be maintained in Media Center as long as the playback is not stopped by the user or by an extensibility application.
Requirements
Windows XP Media Center Edition 2004.
Posted in Development |Comments [0]
Sysknowlogy