CustomViewPort Object
The CustomViewPort object provides a way for HTML applications to control and retrieve information about the custom view port, which is a media window that appears on the screen in a specified size and location. The custom view port provides a space to display the current video media experience in HTML applications. Unlike the shared view port, the custom view port does not display metadata for the media experience.
Note Hosted HTML has been deprecated. To use the new features of the Windows Media Center SDK, you must develop a Windows Media Center Presentation Layer application. However, if you still want to develop a hosted HTML application or update an existing application, you can download and use the previous version of the Windows Media Center SDK from the Microsoft Download Center.
The CustomViewPort object exposes the following properties:
Property | Description |
BorderColor | Sets the RGB value to use for the border when the custom view port does not have the focus. |
FocusBorderColor | Sets the RGB value to use for the border when the custom view port has the focus. |
Rectangle | Gets or sets the rectangle representing the bounding box for the custom view port. |
Visible | Gets a value that indicates whether the custom view port is hidden or visible. |
The CustomViewPort object exposes the following method:
Method | Description |
Focus | Requests that Windows Media Center place the focus on the custom view port. |
See Also