Platform SDK: Broadcast Architecture

Sizing the Video Control

If the user manipulates the size of your application or the Video control on-screen, your application might require that the on-screen size of the Video control change. Some examples of user manipulation that can result in resizing the Video control are:

To change the Video control's size in proportion to a change in your application's size on-screen, you implement a function that responds to your application's resize event. In the resize function, you set the size of the Video control to a fraction of your application's size.

To enable users to fill your application window with the Video control or to reduce the Video control's size, you implement functions in your application that respond to specific events of the Video control. To fill your application window with the Video control when the user clicks on the Video control, you implement a function that responds to the Video control's Click event. In the click function, you set the width and height of the Video control to the application's width and height. To reduce the Video control's size when the user double-clicks on the Video control, you implement a function that responds to the Video control's DblClick event. In the double-click function, you set the size of the Video control to a fraction of the application's size.