Windows media player control playstatechange




















The following example demonstrates an event handler for the Player. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No. This browser is no longer supported.

Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No. Any additional feedback? Note Because the WindowsMediaPlayer object is not wrapped as an ActiveX control, it does not have any properties inherited from System. In this article. Any ideas? I've done a bit more messikng about today, and have found a partial fix, but it's not ideal. What I've found is that even when 'stopped' is clicked, a number of other events are being fired.

I've found that the surest one to detect is the player pausing, but it isn't ideal as the player also pauses when switching feeds for instance. The code below works and is picking up case 2 most of the time , but it does mean that if someone wants to actually pause the player they can't really, and also there is some screen jumping as the player is hidden then made visible again when switching feeds:.

Ask a question. Quick access. Search related threads. Remove From My Forums. Asked by:. Archived Forums. Windows Desktop Sidebar Gadget Development. Sign in to vote. Hi, I'm trying to detect a media player gadet stopping,and then hide the player.



0コメント

  • 1000 / 1000