Msdn microsoft embed a windows media player




















For example, you can create a spreadsheet in Microsoft Excel and insert a "talking head" video summarizing a report, or you can create a Microsoft Word document and insert a short animation illustrating a point made in the text. If you don't like the user interface provided by the control, you can use Microsoft Visual Basic for Applications VBA to provide a custom user interface. This lets you add additional script code that you may have developed for other webpages. FrontPage lets you rapidly create a page, add the Windows Media Player control from a menu, and configure it in a properties dialog box.

Select the first button and change the Text property to "Play". Select the second button and change its Text property to "Stop".

Double-click the Play button to reveal the Code window. The following code is displayed:. Double-click the Stop button to reveal the Code window. The managed-code wrapper for the Windows Media Player control exposes the Controls object as Ctlcontrols to avoid collision with the Controls property inherited from System. Instead, the control signals an event. Your application should handle error events sent by the Player. When the user plays a video, it will appear in the window. For audio-only content, a visualization will appear.

Now, add two buttons to the form. Select the first button and change the Text property to "Play". Select the second button and change its Text property to "Stop". Double-click the Play button to reveal the Code window. In C , the following code will be displayed:.

Any valid file path can be used. I've seen a few other apps with this feature, including VLC player. They can act as wallpaper background. I was trying to do the same thing for an ap that I'm working on. I need to know if it's possible, and if so could you give me some idea where to start. Friday, July 24, PM. If you have any feedback, please tell us. Tuesday, July 28, AM. I think he mean: "to embed media player or form with media player in desktop.

The trick is - keep icons and not cover the task-bar. Tuesday, July 28, PM. In Windows 7 and Vista, you could use a Gadget. This is correct. I want the player to have the option of playing video in a window a form or under the icons on the desktop.



0コメント

  • 1000 / 1000