Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
Use the OBJECT tag to embed the Video Control in a Web page. You can specify either the CLASSID attribute or the DATA attribute, as follows:
<OBJECT ID="MSVidCtl" CLASSID="CLSID:B0EDF163-910A-11D2-B632-00C04F79498E"></OBJECT>
<OBJECT DATA="tv:"></OBJECT>
With the CLASSID attribute, the Video Control is created but does not tune to any program. It appears as a blank video rectangle until the Video Control receives a tune request through script. With the DATA attribute, the Video Control automatically tunes to the default tune request specified in the system registry (if any).
The default tune request must be created using C++. Script-based applications cannot access the system registry. The default tune request might be created during the installation process for a particular device or service, or by a C++ application. For more information, see ICreatePropBagOnRegKey
The Video Control appears as a visible rectangle on the display, so it should be embedded and positioned inside the BODY tag of the Web page, rather than the HEAD tag. To specify the dimensions of the rectangle, use the WIDTH and HEIGHT attributes, as shown in the following example:
<OBJECT DATA="tv:" WIDTH="320" HEIGHT="280"></OBJECT>