Search code examples
javascriptwindows-media-player

Is there a documented JavaScript API for Windows Media Player?


I want to use JavaScript to control an embedded Windows Media Player, as well as access any properties that the player exposes. I've found a few hacky examples online, but nothing concrete.

I really need access to play, pause, stop, seek, fullscreen, etc. I'd also like to have access to any events the player happens to broadcast.

Help would be wonderful (I already have a Flash equiv, just so you know), thanks!


Solution

  • There is an API in Microsoft's developer center, but it will only work if you embed windows media player using active-x.

    To "learn" more about the API, check out MSDN: http://msdn.microsoft.com/en-us/library/dd564034(VS.85).aspx