Remarks
This property specifies the appearance of the embedded Windows Media Player. When uiMode is set to "none", "mini", or "full", a window is present for the display of video clips and audio visualizations. This window can be hidden in mini or full mode by setting the height attribute of the OBJECT tag to 40, which is measured from the bottom, and leaves the controls portion of the user interface visible. If no embedded interface is desired, set both the width and height attributes to zero.If uiMode is set to "invisible", no user interface is displayed, but space is still reserved on the page as specified by width and height. This is useful for retaining page layout when uiMode can change. Additionally, the reserved space is transparent, so any elements layered behind the control will be visible.
If uiMode is set to "full" or "mini", Windows Media Player displays transport controls in full-screen mode. If uiMode is set to "none", no controls are displayed in full-screen mode.
If the window is visible and audio content is being played, the visualization displayed will be the one most recently used in Windows Media Player.
If uiMode is set to "custom" in a C++ program that implements IWMPRemoteMediaServices, the skin file indicated by IWMPRemoteMediaServices.GetCustomUIMode is displayed.
During full-screen playback, Windows Media Player hides the mouse cursor when enableContextMenu equals false and uiMode equals "none".
Examples
The following example creates a list box that allows the user to change the user interface mode for an embedded Windows Media Player object. The AxWMPLib.AxWindowsMediaPlayer object is represented by the variable named player.// Load the list box with the four UI mode options. uiModeOptions.Items.Add("invisible"); uiModeOptions.Items.Add("none"); uiModeOptions.Items.Add("mini"); uiModeOptions.Items.Add("full"); private void uiModeOptions_OnSelectedIndexChanged(object sender, System.EventArgs e) { // Get the selected UI mode in the list box as a string. string newMode = (string)(((System.Windows.Forms.ListBox)sender).SelectedItem); // Set the UI mode that the user selected. player.uiMode = newMode;
}
No comments:
Post a Comment