| Platform SDK: Broadcast Architecture |
You can add the Video control to Web pages. To do this, insert the control using an OBJECT tag such as the following:
<OBJECT ID = vid CLASSID = "clsid:31263EC0-2957-11CF-A1E5-00AA9EC79700" BORDER = 0 VSPACE = 0 HSPACE = 0 ALIGN = TOP HEIGHT = 100% WIDTH = 100% > </OBJECT>
Note In the preceding OBJECT tag, you can change the value of any parameter except CLASSID. The CLASSID value must appear exactly as shown.
Once you have added the control to an HTML page, you can access the control's methods and properties from script or from other controls embedded in the page. For example, the following script, written using Microsoft® Visual Basic® Scripting Edition (VBScript), sets the input channel for an instance of the Video control named vid.
<SCRIPT LANGUAGE = VBScript>
Dim MyChannel = 12
For Each Device In vid.Devices
If vid.Input.HasChannel Then
If Device.ChannelAvailable(MyChannel)
vid.Input = Device
vid.Input.Channel = MyChannel
Exit For
End If
End If
Next
</SCRIPT>