WMEncoder.Broadcast
The Broadcast property retrieves the port number and protocol for broadcasting encoded content.
Syntax
IWMEncBroadcast = WMEncoder.Broadcast
Parameters
This property takes no parameters.
Property Value
An IWMEncBroadcast object.
Remarks
Use this method to acquire a broadcast object so that you can specify and retrieve the port number and protocol used for transmitting encoded content. Currently, only HTTP can be used. The default port number is 8080, but other ports can be used.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Retrieve an IWMEncBroadcast object from the WMEncoder object.
Dim Brdcst As IWMEncBroadcast
Dim iPortNumber As Integer
Set Brdcst = Encoder.Broadcast
' Configure the encoding session to archive encoded content.
' For a complete example, see either the IWMEncFile object or the
' IWMEncFileArchiveStats object.
' Set the property.
Brdcst.PortNumber(WMENC_PROTOCOL_HTTP) = 2356
' Return the property.
iPortNumber = Brdcst.PortNumber(WMENC_PROTOCOL_HTTP)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also