Dec 21, 2019 Microsoft states that the 'Media Feature Pack' is an Optional Feature and says go to SettingsAppsApps and FeaturesOptional FeaturesAdd a Feature and then locate the Media Feature Pack. In the list of available Optional Features. It's NOT listed? I Then reasoned that the Win 10 Media Player might be the cause of it not showing the Pack. Windows Media Player 11 for Windows XP offers great new ways to store and enjoy all your music, video, pictures, and recorded TV. Play it, view it, and sync it to a portable device for enjoying on. Jul 04, 2017 Microsoft removed Windows Media Center from Windows 10, and there’s no official way to get it back. While there are great alternatives like Kodi, which can play and record live TV, the community has made Windows Media Center functional on Windows 10. This isn’t an official trick. Simple media player for windows 10 devices. Features: 1.Plays almost all types of local video files (mp4,mkv,avi,3gp,flv and more). 2.Supports external subtitle file. Srt and sub files are currently supported. Dec 30, 2017 The Groove Music is a well know digital music streaming app developed by Microsoft. It has refined interface with a various new feature. Still, it lacks features which every music player app must have and yet not ready to compete with Windows Media Player, and other media players for Windows 10 available in the market.
-->The media player is used to view and listen to video and audio. Media playback can be inline (embedded in a page or with a group of other controls) or in a dedicated full-screen view. You can modify the player's button set, change the background of the control bar, and arrange layouts as you see fit. Just keep in mind that users expect a basic control set (play/pause, skip back, skip forward).
Important APIs: MediaPlayerElement class, MediaTransportControls class
Note
MediaPlayerElement is only available in Windows 10, version 1607 and up. If you are developing an app for an earlier version of Windows 10 you will need to use MediaElement instead. All of the recommendations on this page apply to MediaElement as well.
Is this the right control?
Use a media player when you want to play audio or video in your app. To display a collection of images, use a Flip view.
Examples
XAML Controls Gallery |
---|
If you have the XAML Controls Gallery app installed, click here to open the app and see the MediaPlayerElement or MediaPlayer in action. |
A media player in the Windows 10 Get Started app.
Create a media player
Add media to your app by creating a MediaPlayerElement object in XAML and set the Source to a MediaSource that points to an audio or video file.
This XAML creates a MediaPlayerElement and sets its Source property to the URI of a video file that's local to the app. The MediaPlayerElement begins playing when the page loads. To suppress media from starting right away, you can set the AutoPlay property to false.
This XAML creates a MediaPlayerElement with the built in transport controls enabled and the AutoPlay property set to false.
Media transport controls
MediaPlayerElement has built in transport controls that handle play, stop, pause, volume, mute, seeking/progress, closed captions, and audio track selection. To enable these controls, set AreTransportControlsEnabled to true. To disable them, set AreTransportControlsEnabled to false. The transport controls are represented by the MediaTransportControls class. You can use the transport controls as-is, or customize them in various ways. For more info, see the MediaTransportControls class reference and Create custom transport controls.
The transport controls support single- and double-row layouts. The first example here is a single-row layout, with the play/pause button located to the left of the media timeline. This layout is best reserved for inline media playback and compact screens.
The double-row controls layout (below) is recommended for most usage scenarios, especially on larger screens. This layout provides more space for controls and makes the timeline easier for the user to operate.
System media transport controls
MediaPlayerElement is automatically integrated with the system media transport controls. The system media transport controls are the controls that pop up when hardware media keys are pressed, such as the media buttons on keyboards. For more info, see SystemMediaTransportControls.
NoteMediaElement does not automatically integrate with the system media transport controls so you must connect them yourself. For more information, see System Media Transport Controls.
Set the media source
To play files on the network or files embedded with the app, set the Source property to a MediaSource with the path of the file.
Tip To open files from the internet, you need to declare the Internet (Client) capability in your app's manifest (Package.appxmanifest). For more info about declaring capabilities, see App capability declarations.
This code attempts to set the Source property of the MediaPlayerElement defined in XAML to the path of a file entered into a TextBox.
To set the media source to a media file embedded in the app, initialize a Uri with the path prefixed with ms-appx:///, create a MediaSource with the Uri and then set the Source to the Uri. For example, for a file called video1.mp4 that is in a Videos subfolder, the path would look like: ms-appx:///Videos/video1.mp4
This code sets the Source property of the MediaPlayerElement defined previously in XAML to ms-appx:///Videos/video1.mp4.
Open local media files
To open files on the local system or from OneDrive, you can use the FileOpenPicker to get the file and Source to set the media source, or you can programmatically access the user media folders.
If your app needs access without user interaction to the Music or Video folders, for example, if you are enumerating all the music or video files in the user's collection and displaying them in your app, then you need to declare the Music Library and Video Library capabilities. For more info, see Files and folders in the Music, Pictures, and Videos libraries.
The FileOpenPicker does not require special capabilities to access files on the local file system, such as the user's Music or Video folders, since the user has complete control over which file is being accessed. From a security and privacy standpoint, it is best to minimize the number of capabilities your app uses.
To open local media using FileOpenPicker
- Call FileOpenPicker to let the user pick a media file.Use the FileOpenPicker class to select a media file. Set the FileTypeFilter to specify which file types the FileOpenPicker displays. Call PickSingleFileAsync to launch the file picker and get the file.
- Use a MediaSource to set the chosen media file as the MediaPlayerElement.Source.To use the StorageFile returned from the FileOpenPicker, you need to call the CreateFromStorageFile method on MediaSource and set it as the Source of MediaPlayerElement. Then call Play on the MediaPlayerElement.MediaPlayer to start the media.
This example shows how to use the FileOpenPicker to choose a file and set the file as the Source of a MediaPlayerElement.
Set the poster source
You can use the PosterSource property to provide your MediaPlayerElement with a visual representation before the media is loaded. A PosterSource is an image, such as a screen shot or movie poster, that is displayed in place of the media. The PosterSource is displayed in the following situations:
- When a valid source is not set. For example, Source is not set, Source was set to Null, or the source is invalid (as is the case when a MediaFailed event occurs).
- While media is loading. For example, a valid source is set, but the MediaOpened event has not occurred yet.
- When media is streaming to another device.
- When the media is audio only.
Here's a MediaPlayerElement with its Source set to an album track, and it's PosterSource set to an image of the album cover.
Keep the device's screen active
Typically, a device dims the display (and eventually turns it off) to save battery life when the user is away, but video apps need to keep the screen on so the user can see the video. To prevent the display from being deactivated when user action is no longer detected, such as when an app is playing video, you can call DisplayRequest.RequestActive. The DisplayRequest class lets you tell Windows to keep the display turned on so the user can see the video.
To conserve power and battery life, you should call DisplayRequest.RequestRelease to release the display request when it is no longer required. Windows automatically deactivates your app's active display requests when your app moves off screen, and re-activates them when your app comes back to the foreground.
Here are some situations when you should release the display request:
- Video playback is paused, for example, by user action, buffering, or adjustment due to limited bandwidth.
- Playback stops. For example, the video is done playing or the presentation is over.
- A playback error has occurred. For example, network connectivity issues or a corrupted file.
Note If MediaPlayerElement.IsFullWindow is set to true and media is playing, the display will automatically be prevented from deactivating.
To keep the screen active
- Create a global DisplayRequest variable. Initialize it to null.
- Call RequestActive to notify Windows that the app requires the display to remain on.
- Call RequestRelease to release the display request whenever video playback is stopped, paused, or interrupted by a playback error. When your app no longer has any active display requests, Windows saves battery life by dimming the display (and eventually turning it off) when the device is not being used.Each MediaPlayerElement.MediaPlayer has a PlaybackSession of type MediaPlaybackSession that controls various aspects of media playback such as PlaybackRate, PlaybackState and Position. Here, you use the PlaybackStateChanged event on MediaPlayer.PlaybackSession to detect situations when you should release the display request. Then, use the NaturalVideoHeight property to determine whether an audio or video file is playing, and keep the screen active only if video is playing.
Control the media player programmatically
MediaPlayerElement provides numerous properties, methods, and events for controlling audio and video playback through the MediaPlayerElement.MediaPlayer property. For a full listing of properties, methods, and events, see the MediaPlayer reference page.
Advanced media playback scenarios
For more complex media playback scenarios like playing a playlist, switching between audio languages or creating custom metadata tracks set the MediaPlayerElement.Source to a MediaPlaybackItem or a MediaPlaybackList. See the Media playback page for more information on how to enable various advanced media functionality.
Enable full window video rendering
Set the IsFullWindow property to enable and disable full window rendering. When you programmatically set full window rendering in your app, you should always use IsFullWindow instead of doing it manually. IsFullWindow insures that system level optimizations are performed that improve performance and battery life. If full window rendering is not set up correctly, these optimizations may not be enabled.
Here is some code that creates an AppBarButton that toggles full window rendering.
Resize and stretch video
Use the Stretch property to change how the video content and/or the PosterSource fills the container it's in. This resizes and stretches the video depending on the Stretch value. The Stretch states are similar to picture size settings on many TV sets. You can hook this up to a button and allow the user to choose which setting they prefer.
- None displays the native resolution of the content in its original size.
- Uniform fills up as much of the space as possible while preserving the aspect ratio and the image content. This can result in horizontal or vertical black bars at the edges of the video. This is similar to wide-screen modes.
- UniformToFill fills up the entire space while preserving the aspect ratio. This can result in some of the image being cropped. This is similar to full-screen modes.
- Fill fills up the entire space, but does not preserve the aspect ratio. None of image is cropped, but stretching may occur. This is similar to stretch modes.
Here, an AppBarButton is used to cycle through the Stretch options. A switch statement checks the current state of the Stretch property and sets it to the next value in the Stretch enumeration. This lets the user cycle through the different stretch states.
Enable low-latency playback
Set the RealTimePlayback property to true on a MediaPlayerElement.MediaPlayer to enable the media player element to reduce the initial latency for playback. This is critical for two-way communications apps, and can be applicable to some gaming scenarios. Be aware that this mode is more resource intensive and less power-efficient.
This example creates a MediaPlayerElement and sets RealTimePlayback to true.
Recommendations
The media player supports both light and dark themes, but dark theme provides a better experience for most entertainment scenarios. The dark background provides better contrast, in particular for low-light conditions, and limits the control bar from interfering in the viewing experience.
Download Windows Media Player For Windows 10
When playing video content, encourage a dedicated viewing experience by promoting full-screen mode over inline mode. The full-screen viewing experience is optimal, and options are restricted in the inline mode.
If you have the screen real estate or are designing for the 10-foot experience, go with the double-row layout. It provides more space for controls than the compact single-row layout and it is easier to navigate using gamepad for 10-foot.
Note Visit the Designing for Xbox and TV article for more information on optimizing your application for the 10-foot experience.
The default controls have been optimized for media playback, however you have the ability to add custom options you need to the media player in order to provide the best experience for you app. Visit Create custom transport controls to learn more about adding custom controls.
Get the sample code
- XAML Controls Gallery sample - See all the XAML controls in an interactive format.
Related articles
Windows 10 is another version of the Windows operating system. Microsoft really made great a deal of changes compared to other previous versions. One of the biggest changes is that Windows 10 is getting rid of the Windows Media Player, despite of a huge amount of popularity among the users. The main reason behind the thought of killing media player is that people can now watch live streaming with the help of numerous media players available for free download. The competition has increased for the media Player by leaps and bounds. Also, watching videos or songs in smart phones and tablets do not require the Media player. The dependency on the Media Player has decreased a lot and this is the main reason behind Microsoft Corporation's thinking of killing the Media player in the new operating system named Windows 10.
In return Microsoft Corporation is introducing the XBOX and XBOX LIVE. If, by any chance, people think of loading Media Player separately with Windows 10, then they better forget that, as Windows Media Player is not compatible with Windows 10. Life goes on and never stops for anything that has been killed. Similarly, with the departure of Windows Media Player comes the introduction of new media players that are compatible with windows 10. The 5 great alternatives to Windows Media Player are:
1. XBMC/Kodi:
This is the first alternative for Windows media Player that comes to mind. Kodi is the new name for XBMC which actually started as a hack for Xbox. Later on, with the advent of Xbox 360, the XBMC was developed into a fully functional media centre application that could easily run on Linux and Windows machines. This media player application gives the opportunity to the user for changing the skins and plugins for a better look and feel. Kodi has got a big fan base of its own and it is very much sensible to replace Windows Media Player with this application.
2. Plex:
This is another great alternative to Widows media player. It is very easy to install and plays the role of the media server and player with absolute ease. Plex being a media server has the capability to store locally and externally. Internet Explorer acts as the user interface for this media player where many channels such as Vimeo and the Soundcloud can be added. This media player also manages the video library within the machine without much fuss. This application also plays TV shows, but it can be a bit tricky to organize the shows properly.
3. MediaPortal:
This is another alternative that can be considered parallel to Kodi. Although there is little to choose between MediaPortal and Kodi, they still both have been rivals for a long time. Media Portal is an open source application and is available free of cost. Numerous plugins and skins are available in this application for users to choose from. This application supports recording, playing and pausing of live TV. It also plays locally stored videos and music. It can be considered as a complete home entertainment setup that will make viewing a great experience.
4. VLC Media Player:
This is another great application that can be considered as an alternative to Windows Media Player. This is absolutely free to download and install. It is also an application that runs with ease in Windows, Mac and Linux. The best part is that this application supports videos and audios in all formats and so there is never any need for downloading codec. The file size of this application is also very small. This application is the only application that allows a preview to be seen while the file is still getting downloaded. The user interface is very easy to use and the response to any command is very fast.
5. Emby:
Movie Player For Windows 10
This is another awesome replacement for Windows Media Player. This application is also free for use in Windows operating system. This application has got a lot of great features embedded in it that can make it a stand out replacement for Windows Media Player. Live TV streaming and media player management is only a few important functionality that makes it the dark horse among all the media players discussed here.
The above five media players can easily replace Window Media Player. In all probability these five applications are better than Windows media Player rom several angles. So there is nothing to feel sad about the loss of Windows Media Player.
Windows 10 Simple Introduction
Windows 10 is the new version in the series of Windows operating system that is going to get launched on 29th July 2015. It is the last version of Windows operating system that is going to replace all other previous versions of operating system released by Microsoft Corporation. Windows 10 is supposed to operate in personal computers, laptops, tablets, smart phones etc. For those people that are going to upgrade their present operating systems from Windows 7 Service Pack 1 or Windows 8.1, the new operating system will remain free for the first year. Windows 10 has got rid of several unpopular things of Windows 8.1, like the repeat introduction of the 'Start' menu button. Windows 10 is very similar to Windows 7, but a lot more upgraded.
> Resource > Instructables > Top 5 Great Alternatives to Windows 10 Media Player