VIDEO.zoom

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The zoom attribute specifies the percentage by which to scale the video.

        elementID.zoom

Possible Values

This attribute is a read/write Number (long) ranging from 1 to the maximum size accommodated by the width and height of the Video control. It has a default value of 100.

Remarks

This attribute cannot be used in conjunction with the fullScreen attribute.

If width and height are specified, and the resulting video window is larger than the video being played, the video can be enlarged by scaling up to the maximum size accommodated by the window. If width and height are not specified, zoom is limited to values of 100 or less.

If the shrinkToFit property is false, the video will change proportion upon zooming, to fit itself to the available space. If shrinkToFit is true, the video will shrink to fit within the most restrictive dimension, while retaining its original proportions.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

VIDEO Element

VIDEO.fullScreen

VIDEO.shrinkToFit