![]() |
Previous | Next |
This property specifies or retrieves a value indicating whether the Windows Media Player control automatically resizes to accommodate the current media item at the size specified by the DisplaySize property.
Syntax
MediaPlayer.AutoSize
Possible Values
This property is a read/write Boolean containing one of the following values. See Remarks for default.
Value | Description |
true | Automatic sizing is enabled. |
false | Automatic sizing is disabled. |
Remarks
For Web page applications, the default value is true unless width and height parameters are specified at design time, in which case the default value is false. For Windows-based applications the default is false, because the width and height of the control must be set at design time.
If this property is true, the Windows Media Player control overrides width and height parameters. When a clip is loaded, the control changes its dimensions to accommodate the media stream, as specified by the DisplaySize property.
If this property is false, the image is centered in the video display panel. If the dimensions of the video image are smaller than the display panel, the Windows Media Player control adds a video border around the image. If the video image is larger than the specified display panel area, the image shrinks to fit into the display panel. Windows Media Player renders data more efficiently when it resizes to the dimensions of the source content.
Note When the FileName property is set to DVD:, enabling DVD playback, the default value for the AutoSize property is always true, even if the width and height parameters are specified at design time. To ensure that AutoSize is false when the width and height parameters are specified, set the property to false by using the PARAM tag, as follows.
<PARAM NAME="AutoSize" VALUE="0">
For more information, see Setting Control Properties with the PARAM Tag in the section Placing the Windows Media Player Control in a Web Page.
See Also
Previous | Next |