Log in

View Full Version : Control Windows Media Player Using .NET CF


Mike Temporale
05-22-2004, 03:00 PM
<div class='os_post_top_link'><a href='http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=3288fea9-c468-4562-ba6b-af42472b6bcd' target='_blank'>http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=3288fea9-c468-4562-ba6b-af42472b6bcd</a><br /><br /></div>"Windows Media Player for Pocket PC (and Smartphone) doesn't have a true object model like it's desktop cousin, so the ability to use it from your own code is limited. However there is an undocumented method of sending commands to Windows Media Player via a specific series of Windows Messages. These are actually hidden away in the Registry under the curiously named section "Pendant Bus". Therefore I put together a simple dll which creates an instance of Media Player if one is not already running, and sends messages to it, to allow you to play, pause, move back and forward through the playlist or adjust the volume."<br /><br />If you have been looking for a way to control Media Player from code, then Peter has a solution for you. Nice work Peter!