IWMSAdminUnicastSink.MinClientPacketSize (C#)

The MaximumPacketSize property specifies and retrieves the minimum value of the packet size that a client can request.

IWMAdminUnicastSink.MinClientPacketSize = int;int = IWMSAdminUnicastSink.MinClientPacketSize;

Property Value

int containing the minimum packet size, in bytes.

Remarks

This property can be used to specify the minimum value at which the IWMSAdminUnicastSink.MaximumPacketSize property can be set. The maximum packet size that can be sent is 65,535 bytes. The minimum is 100 bytes. A value of zero indicates that the default size in the file is used.

Example

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSAdminUnicastSink AdminUnicastSink;
int iMinClientSize;

try 
{
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the plug-in to be configured.
    Plugin = Server.UnicastDataSinks["WMS Unicast Data Writer"];

    // Retrieve the custom interface of the plug-in.
    AdminUnicastSink = (IWMSAdminUnicastSink)Plugin.CustomInterface;

    // Retrieve the minimum packet size that can be set.
    iMinClientSize = AdminUnicastSink.MinClientPacketSize;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception) 
{
    // TODO: Handle exceptions.
}

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.

See Also

Reference

IWMSAdminUnicastSink Object (C#)