Controlling windows media player

Как настроить Windows Media Player

Многие люди думают, что Windows Media Player постепенно теряет свою популярность, но это не совсем так. За последнее время для плеера вышло столько обновлений и дополнений, что вы можете полностью настроить его по своему вкусу. Во время проигрывания различных типов файлов, вы можете изменить скин плеера и установить различные дополнения. Хоть плеер и был всегда основным компонентом ОС Windows, действительно хорошим, Windows Media стал в последние несколько лет. Последняя, 12 версия, содержит ряд интересных особенностей, которые вас наверняка заинтересуют. Об этих особенностях и о многом другом мы расскажем в данной статье.

Обновление проигрывателя

Если у вас установлена еще старая версия проигрывателя, то мы настоятельно советуем его обновить. Windows Media является полностью бесплатным и всегда доступным для загрузки на официальном сайте Microsoft.

Автоматический режим: Откройте проигрыватель Windows Media, нажмите клавишу «Alt», перейдите в меню «Справка» и нажмите «Проверить обновления».

Если вы не хотите, проверять наличие обновлений каждый раз вручную, вы можете включить «автоматическую проверку». Для этого выполните следующие действия:

Откройте проигрыватель Windows Media, нажмите клавишу «Alt», разверните меню «Сервис» и откройте настройки.

Во вкладке «Проигрыватель» укажите частоту проверки плеером обновлений.

Первый запуск

Когда вы в первый раз запускаете Windows Media Player, вам необходимо потратить несколько минут, чтобы установить первичные настройки проигрывателя. Они состоят из нескольких шагов:

Шаг 1

Появится мастер установки Windows Media Player, который на первом этапе предложит выбрать какой тип параметров использовать: рекомендуемый или настраиваемый. Если вы выбираете рекомендуемый, плеер автоматически выставит все настройки без вашего вмешательства. В этом случае пропускайте этот раздел и переходите к следующему.

Если вы хотите самостоятельно сконфигурировать проигрыватель, выберите опцию «Пользовательские настройки» и нажмите кнопку «Далее».

Первым откроется диалоговое окно «Параметры конфиденциальности». Установите флажки напротив тех пунктов, которые вы действительно хотите использовать, и нажмите кнопку «Далее».

Примечание: мы рекомендуем снять все флажки, кроме четырех в пункте «журнал».

На этом этапе WMP спросит, хотите ли вы добавить ярлык на рабочий стол и панель быстрого запуска, а также предложит отметить использование его по умолчанию. Выставите нужные настройки и нажмите «Далее».

Далее свяжите плеер с расширениями файлов. Которые хотите, чтобы он воспроизводил по умолчанию. Вы можете выбрать все типы файлов, если используете только Windows Media.

На заключительном этапе проигрыватель предложит настроить интернет магазин для доступа к платному контенту. Выберите пункт «Не настраивать Интернет-магазин» и нажмите кнопку «Готово».

Всегда оставайтесь анонимным в сети

При установке, Windows Media Player генерирует уникальный идентификатор для вашего компьютера. Этот идентификатор используется во многих местах, в том числе и на некоторых веб-ресурсах. Благодаря ему Windows Media Player может самостоятельно запрашивать информацию о медиаданных и выполнять обмен служебной информацией. Хотя разработчики утверждают, что плеер не передает никакой личной информации, но иногда бывают случаи, когда они могут отслеживать то, что вы смотрите. Если вы не хотите, чтобы информация об использовании проигрывателя случайным образом просочилась в сеть, отключить эту функцию. Для этого:

Зажмите клавишу «Alt», а затем откройте меню «Сервис» и выберите «Параметы».

Перейдите на вкладку «Конфиденциальность» и снимите галочку напротив пункта «Отправлять уникальный код…».

Обновите кодек

После того, как вы установили новую версию Windows Media Player, вам необходимо также установить дополнительные кодеки для поддержки некоторых типов файлов. Кодек – не что иное, как дополнительная надстройка для Windows Media Player, помогающая идентифицировать и воспроизводить множество форматов файлов. Мы рекомендуем установить пакет кодеков «K-lite kodek». Его одного достаточно, чтобы включить поддержку практически всех аудио- и видеоформатов данных. Скачать его вы можете с официального сайта разработчика.

Также стоит включить опцию автоматической загрузки кодеков, перейдя в параметры плеера и во вкладке «Проигрыватель» отметить пункт «Автоматически загружать кодеки».

Добавление обложек и зрительных образов к проигрывателю

Обложки и зрительные образы сделают использование проигрывателя более приятным и позволят настроить внешний вид на свой вкус. Единственная проблема в том, с официального сайта Microsoft их скачать уже нельзя, поэтому поиск обложек и визуализации придется выполнять на просторах интернета.

Визуализационные пакеты обычно представляют собой установочный файл. Поэтому их установка заключается в простом запуске инсталлятора, который автоматически скопирует нужный образ в папку с проигрывателем.

Читайте также:  Imac тема для windows

Скины проигрывателя представляют собой специальные файлы с расширением .wmz. Чтобы установить обложку, достаточно дважды кликнуть по файлу, после чего проигрыватель автоматически скопирует и активирует выбранный вами скин.

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

Управление Windows Media Player с помощью горячих клавиш

Ну какой же продвинутый мультимедийный плеер обходится без горячих клавиш? Никакой! А у Windows Media Player их столько, что можно управлять практически всеми функциями, не прибегая к помощи мышки.

Чтобы узнать, какие клавиатурные сочетания можно использовать, откройте Windows Media Player и вызовите справку нажатием F1. В появившемся окне введите запрос “горячие клавиши” – и сразу получите ответ.

Сочетаний много, все они хорошо знакомы, и охватывают большую часть управления плеером.

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

Windows Media Player Hot Keys

Play or pause a file.
CTRL+P
Stop playback.
CTRL+S
Mute the volume.
F8
Increase the volume
F10
Decrease the volume.
F9
Play the previous item.
CTRL+B
Play the next item.
CTRL+F
Rewind.
CTRL+SHIFT+B
Fast-forward.
CTRL+SHIFT+F
Play faster than normal speed (time compression).
CTRL+SHIFT+G
Play at normal speed.
CTRL+SHIFT+N
Play slower than normal speed (time expansion).
CTRL+SHIFT+S
Search for items in your library that include the text in the Search box.
ALT+S
Display or hide album information.
ALT+I
Show or hide the List pane.
ALT, O, and then S
Enable the option to add items to the List pane by double-clicking them.
ALT, O, and then A
Enable the option to play all items in a playlist by double-clicking any item in the playlist.
ALT, O, and then P
Enable the option to play only the selected item in a playlist by double-clicking the item in the playlist.
ALT, O, and then I
Highlight items in the Details pane that contain media information for the selected sort order.
ALT, O, and then G
Choose the columns to be displayed in your library.
ALT, O, and then C
Display in the List pane a list of items to play.
ALT+L, and then W
Display in the List pane a list of items to burn to CD.
ALT+L, and then B
Display in the List pane a list of items to synchronize to a portable device.
ALT+L, and then S
Remove all items from the List pane.
ALT+L, and then C
Play items in the Now Playing list repeatedly.
ALT+L, and then R
Play items in the Now Playing list in a random order.
ALT+L, and then P
Shuffle items in the List Pane.
ALT+L, and then H
Sort items in the list by name, artist, album, rating, or file name.
ALT+L, and then S. Then use the arrow keys to select the information to sort by.
Edit items in the List pane by using the Edit Playlist dialog box.
ALT+L, and then U
Create in the List pane a new playlist or a new auto playlist.
ALT+L, and then N. Then use the arrow keys to select either a new playlist or new auto playlist.
Display in the List pane a playlist from your library.
ALT+L, and then E. Then use the arrow keys to select a playlist or open the Add to Playlist dialog box. Use the Edit by Using Playlist Editor command (ALT+L, and then U) to edit the playlist.
Save to your library a playlist that you changed.
ALT+L, and then A
Save to your library a new playlist that you created.
ALT+L, and then A
Rip music from a CD to your computer.
ALT+C
Stop ripping music from a CD.
ALT+S
Edit a playlist.
ALT+A
Start burning a CD.
ALT+B
Stop burning a CD.
ALT+S
Delete a selected item.
DELETE
Move to the next item in the list.
DOWN ARROW
Move to the previous item in the list.
UP ARROW
Refresh the information in the panes.
F5
Edit a playlist.
ALT+A
Start synchronization.
ALT+S
Stop synchronization.
ALT+S
Change synchronization settings.
ALT+C
Delete a selected item.
DELETE
Move to the next item in the list.
DOWN ARROW
Move to the previous item in the list.
UP ARROW
Refresh the information in the panes.
F5
Display the File menu.
ALT+F
Open a file.
CTRL+O
Specify a URL or path to a file.
CTRL+U
Close or stop playing a file.
CTRL+W
Create a new playlist.
CTRL+N
Edit the current playlist.
CTRL+D
Search specified locations for digital media files.
F3
Exit or close the Player.
ALT+F4
Display the View menu.
ALT+V
Switch to full mode.
CTRL+1
Switch to skin mode.
CTRL+2
Display the menu bar in full mode.
CTRL+M
Autohide the menu bar in full mode.
CTRL+SHIFT+M
Capture a still image from a DVD.
CTRL+I
Display video in full screen.
ALT+ENTER
Zoom to 50%.
ALT+1
Zoom to 100%.
ALT+2
Zoom to 200%.
ALT+3
Display the Play menu.
ALT+P
Play or pause playback.
CTRL+P
Stop playback.
CTRL+S
Use a fast play speed.
CTRL+SHIFT+G
Use a normal play speed.
CTRL+SHIFT+N
Use a slow play speed.
CTRL+SHIFT+S
Play the previous item.
CTRL+B
Play the next item
CTRL+F
Rewind a file.
CTRL+SHIFT+B
Fast-forward a file.
CTRL+SHIFT+F
Shuffle the playlist.
CTRL+H
Repeat the playlist.
CTRL+T
Turn on or off captions and subtitles.
CTRL+SHIFT+C
Increase the volume.
F10
Decrease the volume.
F9
Mute the volume.
F8
Eject the CD or DVD.
CTRL+E, select CD or DVD drive by using arrow keys, and then press ENTER
Display the Tools menu.
ALT+T
Search specified locations for digital media files.
F3
Display Windows Media Player Help.
F1
Display the anchor window menu.
ALT+F6 to focus on the anchor, then ALT key again Switch to full mode.
Open or play a file.
CTRL+O
Specify a URL or path to a file.
CTRL+U
Apply a skin.
ALT+A
Access and download more skins.
ALT+S
Delete a selected skin.
DELETE
Display the shortcut menu.
SHIFT+F10
Browse through the shortcut menu.
SHIFT+F10, arrow keys
Close the shortcut menu.
ESC
Open a file.
CTRL+O
Specify a URL or path to a file.
CTRL+U
Shuffle the playlist.
CTRL+H
Repeat the playlist.
CTRL+T
Increase the volume.
F10
Decrease the volume.
F9
Mute the volume.
F8
Play or pause playback.
CTRL+P
Stop playback.
CTRL+S
Play the previous file.
CTRL+B
Play the next file.
CTRL+F
Switch to full mode.
CTRL+1
Display Windows Media Player Help.
F1

Евгений Зарубин в письме меня спросил, есть ли способ изменить эти клавиатурные сочетания? Способа изменить все горячие клавиши, не вмешиваясь грубо в реестр, я не знаю, но основные, касаемые управления воспроизведением, изменить все же можно с помощью плагина WMPKeys. После установки и активации плагина в его настройках можно поменять 12 горячих клавиш.

Читайте также:  Linux find do done
Оцените статью