VideoSurface.SetVideo Method
Sets the size and scaling of the video.
Syntax
public void SetVideo(
Microsoft.MediaCenter.UI.Rectangle rect,
bool scaleToViewport
);
Parameters
rect
Microsoft.MediaCenter.UI.Rectangle. The rectangle of video on the video surface.
scaleToViewport
System.Boolean. Indicates whether to scale the video to the size of the player view port.
Note At this time, this value must be set to true. A value of false returns an error.
Return Value
This method does not return a value.
Requirements
Reference: Microsoft.MediaCenter.ITVVM
Namespace: Microsoft.MediaCenter.TVVM
Assembly: Microsoft.MediaCenter.ITVVM.dll
Platform: Windows 7
See Also