是否有针对Windows Media Player的文档化JavaScript API? [英] Is there a documented JavaScript API for Windows Media Player?
问题描述
我想使用JavaScript来控制嵌入式Windows Media Player,以及访问播放器公开的任何属性。我在网上找到了一些hacky示例,但没有具体的内容。
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.
帮助会非常棒(我已经有了Flash等效,只是你知道),谢谢!
Help would be wonderful (I already have a Flash equiv, just so you know), thanks!
推荐答案
Microsoft的开发人员中心有一个API,但只有在使用active-x嵌入windows media player时才会有效。
There is an API in Microsoft's developer center, but it will only work if you embed windows media player using active-x.
要了解有关API的更多信息,请查看MSDN: http://msdn.microsoft.com/en-us/library/dd564034(VS.85).aspx
To "learn" more about the API, check out MSDN: http://msdn.microsoft.com/en-us/library/dd564034(VS.85).aspx
这篇关于是否有针对Windows Media Player的文档化JavaScript API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!