![]() MediaPlayerElement is only available in Windows 10, version 1607 and later. See the Designing for Xbox and TV article for more information about optimizing your application for the 10-foot experience. It provides more space for controls than the compact single-row layout and it is easier to navigate using a gamepad for 10-foot. If you are designing for the 10-foot experience, go with the double-row layout. ![]() WinUI 2.2 or later includes a new template for this control that uses rounded corners. We recommend using the latest WinUI 2 to get the most current styles and templates for all controls. Get the app from the Microsoft Store or get the source code on GitHub. The WinUI 2 Gallery app includes interactive examples of most WinUI 2 controls, features, and functionality. Open the WinUI 2 Gallery app and see the MediaPlayerElement in action.UWP APIs: MediaPlayerElement class, MediaTransportControls class.Visit Create custom transport controls to learn more about adding custom controls. 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 your app. It provides more space for controls than the compact single-row layout and can be easier to navigate using a variety of inputs. If you have the screen real estate, go with the double-row layout. The full-screen viewing experience is optimal, and options are restricted in the inline mode. When playing video content, encourage a dedicated viewing experience by promoting full-screen mode over inline mode. The dark background provides better contrast, in particular for low-light conditions, and limits the control bar from interfering in the viewing experience. The media player supports both light and dark themes, but dark theme provides a better experience for most entertainment scenarios. To display a collection of images, use a flip view. Use a media player when you want to play audio or video in your app. Users expect a basic control set, such as play/pause, skip back, skip forward, which you can modify as required (including the media player's buttons, the background of the control bar, and control arrangement or layout). Media playback involves the viewing and listening of video and audio through inline (embedded in a page or with a group of other controls) or dedicated full-screen experiences.
0 Comments
Leave a Reply. |