WMEncoder.OnClientDisconnect

Windows Media Encoder SDK banner art

The OnClientDisconnect event receives an event notice indicating that a client has disconnected from a computer running an encoding application.

Syntax

WMEncoder.OnClientDisconnect(protocol, strIPAddr)

Parameters

protocol

[in]  Member of a WMENC_BROADCAST_PROTOCOL enumeration type containing the broadcast protocol.

strIPAddr

[in]  String containing the IP address of the client.

Return Values

This event does not return a value.

Example Code

Private Sub Encoder_OnClientDisconnect( _
ByVal protocol As WMEncoderLib.WMENC_BROADCAST_PROTOCOL, _
ByVal sIPAddr As String)

    Select Case WMENC_PROTOCOL_HTTP
        If sIPAddr = "xxx.xxx.xxx.xxx" Then
            ' Handle a specific IP address.
        End If

End Sub

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also