Windows media embed player

Windows Media Player для Windows

Поддерживаемые ОС Windows, MAC Разрядность 32 bit, 64 bit, x32, x64 Для устроиств компьютер Язык интерфейса Русский Последнее обновление 2019 Тип распространения Бесплатный Разработчик Microsoft Официальный сайт windows.microsoft.com
  • Windows Media Player для windows 10
  • Windows Media Player для windows 8.1
  • Windows Media Player для windows 8
  • Windows Media Player для windows 7
  • Windows Media Player для windows Vista
  • Windows Media Player для windows XP
  • Версия Платформа Язык Размер Формат Загрузка
    Windows Media Player 11 Windows Русский 25,7MB .exe
    * скачайте бесплатно Windows Media Player для Windows, файл проверен!

    Windows Media Player (Виндовс медиаплеер) – проигрыватель видео и аудио файлов, входящий в состав операционных систем семейства Windows. На сегодняшний день бесплатно распространяется компанией Microsoft. Поддерживает подключение дополнительных плагинов, таких, как:

    • AC3filter – обеспечивает поддержку многоканального звука, а также выходы S/PDIF. Кроме того, декодирует в режиме реального времени аудиоформат AC3/DTS;
    • Xiph.org – предназначен для работы с форматами FLAC, а также Ogg Vorbis, Speex, Theora;
    • WMP Tag Pius – плагин, с помощью которого подключаются библиотеки для интеграции в проигрыватель дополнительных форматов: FLAC, Ogg Vorbis, Monkey’s Audio, MPEG-4, Musepack.

    Впервые программа появилась в Windows 98 Second Edition. При первой установке медиапроигрыватель проверяет подлинность лицензионной копии операционной системы Windows.

    Основные возможности программы

    Кроме воспроизведения медиафайлов, программа умеет приобретать в сети платный контент, производить синхронизацию с другими устройствами, например, MP3-плеером, а также проигрывать аудио и видео из iTunes. Помимо этого, Windows Media Player умеет:

    • Воспроизводить мультимедийные файлы локально или в потоковом режиме в большинстве популярных форматов;
    • Проигрывать DVD, CD или VCD диски;
    • Работать с титрами и текстами песен (опционально);
    • Просматривать в сети ТВ-каналы и прослушивать FM-радио;
    • Импортировать, экспортировать и создавать плейлисты форматов: .asx, .wax, .m3u, .wmx, Search-MS, .wpl, а также изменять их параметры;
    • Выводить подробную информацию о воспроизводимом файле – формат, путь размещения, жанр, альбом, исполнитель или композитор. Может отыскать более детальную информацию, воспользовавшись выходом в интернет;
    • Записывать с заданной скоростью DVD и CD диски, а также копировать содержимое с музыкальных компакт-дисков в форматах MP3 или WMA\WAV с выбором качества звучания от 48 до 192 кб. Есть возможность установить защиту от копирования;
    • Воспроизводить медиаконтент с локального компьютера на удаленный ПК или мобильное устройство;
    • 10-полосный графический эквалайзер с поддержкой предустановленных пресетов, к примеру, «Рок» или «Классика».

    Последняя на сегодняшний день версия имеет индекс 12 и была выпущена в 2017 году.

    Embedding the Windows Media Player Control in a C# Solution

    To use the functionality of Windows Media Player in a C# application, first add the component to a form as described in Using the Windows Media Player Control with Microsoft Visual Studio

    The following sections describe how to create an application that plays video and uses custom play and stop buttons.

    Add the Video Window

    Add the Windows Media Player ActiveX control to a form. Resize the control, and then place it where you want the video window to appear.

    Select the Windows Media Player control, then change the uiMode property to «none». This setting hides the UI controls. When the user plays a video, it will appear in the window. For audio-only content, a visualization will appear.

    Add Two Buttons and Adjust the Form

    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».

    Add the Play Code

    Double-click the Play button to reveal the Code window. In C#, the following code will be displayed:

    Add this line between the two curly braces:

    In the preceding code example, «axWindowsMediaPlayer1» is the default name of the Windows Media Player control, and «c:\mediafile.wmv» is a placeholder for the name of the media item you want to play. Any valid file path can be used. The @ symbol instructs the compiler to not interpret backslashes as escape characters.

    If you have added the digital media content from the Windows Media Player SDK to the library in Windows Media Player, you can use this code instead:

    Because the autoStart property is true by default, Windows Media Player will start playing when you set the currentPlaylist or URL property.

    Add the Stop Code

    Double-click the Stop button to reveal the Code window. In C#, the following code will be displayed:

    Add this line between the two curly braces:

    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.Windows.Forms.Control.

    Add Error-handling

    The Windows Media Player control does not raise an exception when it encounters an error such as an invalid URL. Instead, it signals an event. Your application should handle error events sent by the Player.

    To create an event handler, first open the Properties window for the Windows Media Player control. In the list of events, double-click MediaError. The following code is displayed:

    The following code could be inserted in the method to provide minimal error-handling capability. Note that information about the error can be retrieved from the _WMPOCXEvents_MediaErrorEvent argument.

    Using HTML with Windows Media Player

    Overview

    Using HTML with Windows Media Player is an excellent way to combine audio and video with text and graphics. You can embed the Windows Media Player control in a webpage when you want to supplement your static content or create Web applications with digital media. When you want to supplement your digital media with HTML, on the other hand, you can display webpages in the full mode of the Player by referencing them in Windows Media metafile playlists.

    If you write custom programs that embed the Windows Media Player control in remote mode, you can also control the webpages displayed in the various panes of the full mode of the Player when your users undock the control. This lets you preserve continuity between the docked and undocked states.

    Web Embedding

    You can use the Windows Media Player control as part of a webpage you create. See Embedding the Windows Media Player Control in a Web Page.

    Script Commands and URL Flipping

    Script commands are text/value pairs you can embed in your digital media files or streams. You might use custom script commands solely to trigger script code, while letting Windows Media Player handle other script commands automatically.

    When you have several webpages that accompany a digital media presentation, URL script commands can automatically change the page in one frame while the Windows Media Player control continues playing digital media in another frame. This is called URL flipping, and is an excellent way to create a multimedia slide show. Other automatically handled script commands let you switch playback to a different media file or stream, display captioning text, or trigger events such as ad insertions defined in a Windows Media metafile playlist.

    For more information about URL flipping, see Creating Web-Based Presentations.

    Rich Media Streaming

    URL flipping works best with simple pages that load rapidly. With more complex pages, multiple components are transferred individually, making it difficult to synchronize page display with digital media. To allow complex rich media presentations, webpages can be added to a media stream and delivered to the Player in the same way as audio and video. This lets you synchronize the components of your presentation much more easily, especially over low-speed connections.

    For more information about rich media streaming, see Creating Web-Based Presentations.

    Browser Support

    You can embed the Windows Media Player control in Microsoft Internet Explorer, Firefox, and Netscape Navigator, although the process is slightly different for each. You can also create webpages designed to work with all three browsers.

    With Internet Explorer and Firefox, you embed the control using the HTML OBJECT element. Navigator requires a different approach, however, because it doesn’t directly support ActiveX controls. With Navigator, you use the APPLET element to embed a special Java applet into the page. This applet handles communication with the Player ActiveX control.

    For more information about Netscape Navigator support, see Using Windows Media Player with Netscape 7.1.

    Displaying Web Pages in the Full Mode of the Player

    You can extend the functionality of Windows Media Player or provide a custom view of information that accompanies your digital media by displaying webpages in the full mode of the Player. This is the HTMLView feature of Windows Media metafiles. Metafiles give you great control over playlist content, allowing you to seamlessly transition between clips, insert advertisements, and display still images in Windows Media Player. To display webpages in the full mode of the Player, you use the PARAM element to add URL references to your playlist entries or to entire playlists.

    For more information about using webpages in metafiles, see Displaying Web Pages in Windows Media Player.

    Using the Windows Media Player Control in a Web Page

    Embedding the Windows Media Player control in a webpage lets you completely customize the way the user interacts with the control. You can use the interface provided by the control, or you can hide it and display your own user interface. You can specify multiple Windows Media Player control properties at the point where you embed the control, or you can set Player properties and call Player methods in script code.

    The following sections describe the basics of embedding the control in a webpage.

    Section Description
    Hiding the Windows Media Player Control Describes the options for hiding the Windows Media Player control when you want to provide your own user interface.
    PARAM Elements in an OBJECT Element Describes how to initialize the Windows Media Player control when you embed it.
    Simple Example of Scripting in a Web Page Describes a simple, but complete, example of an embedded Player control with a custom user interface.
    Using the Windows Media Player Control with Firefox Describes how to embed the Windows Media Player control in a webpage so that it will be displayed correctly by a Firefox browser.
    Using Windows Media Player with Netscape 7.1 Describes how to use the Windows Media Player control with Netscape 7.1 and other Gecko-based Web browsers.

    The Windows Media Player 10 Mobile control contains functionality based on a subset of the functionality provided in the desktop version of the Windows Media Player control. Therefore, it can be embedded in a Pocket Internet Explorer webpage the same way the desktop control is embedded in an Internet Explorer webpage. To find out whether a particular method, property, or event is supported for the Windows Media Player 10 Mobile control, see Object Model Reference for Scripting.

    Embedding the Windows Media Player Control in a Visual Basic .NET Solution

    To use the functionality of Windows Media Player 9 Series or later in a Visual Basic .NET application, first add the component to a form as described in Using the Windows Media Player Control with Microsoft Visual Studio

    This section describes how to create an application that plays video and has custom play and stop buttons.

    Add the Video Window

    Add the Windows Media Player control to a form. Resize the control, and then place it where you want the video window to appear.

    Select the Windows Media Player control, then change the uiMode property to «none». This setting hides the UI controls. When the user plays a video, it will appear in the window. For audio-only content, a visualization will appear.

    Add Two Buttons and Adjust the Form

    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».

    Add the Play Code

    Double-click the Play button to reveal the Code window. The following code is displayed:

    Add this line to the subroutine:

    In the preceding code example, «axWindowsMediaPlayer1» is the default name of the Windows Media Player control and «c:\mediafile.wmv» is a placeholder for the name of the media you want to play.

    If you have added the digital media content from the Windows Media Player SDK to the library in Windows Media Player, you can use this code instead:

    Because the autoStart property is true by default, Windows Media Player will start playing when you set the currentPlaylist or URL property.

    Add the Stop Code

    Double-click the Stop button to reveal the Code window. The following code is displayed:

    Add this line to the subroutine:

    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.Windows.Forms.Control.

    Add Error-handling

    The Windows Media Player control does not raise an exception when it encounters an error such as an invalid URL. Instead, the control signals an event. Your application should handle error events sent by the Player.

    To create an event handler, open the code window for your form class. From the drop-down list at the top of the window, select the Windows Media Player control. A list of events appears in the drop-down list to the right. From that list, select MediaError. The following code is displayed:

    The following code could be inserted in the subroutine to provide minimal error-handling capability. Note that information about the error can be retrieved from the _WMPOCXEvents_MediaErrorEvent argument.

    Читайте также:  Что такое линукс ответы
    Оцените статью