Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSAdminNetworkDataSourcePlugin.BufferingTime (C#)
The BufferingTime property specifies and retrieves the amount of time that the plug-in buffers data before sending it along the data path.
Syntax
IWMSAdminNetworkDataSourcePlugin .BufferingTime = int; int = IWMSAdminNetworkDataSourcePlugin.BufferingTime;
Property Value
int containing the amount of buffering time, in .01 nanosecond units.
If this property fails, it throws an exception.
| Number | Description |
| 0x80070057 | The newVal parameter is less than zero or greater than 60000. |
Remarks
The maximum buffering time is sixty seconds.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSAdminNetworkDataSourcePlugin AdminNetDataSrc;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the plug-in to be configured.
Plugin = Server.DataSources[
"WMS Network Data Source"];
// Retrieve the custom interface of the plug-in.
AdminNetDataSrc =
(IWMSAdminNetworkDataSourcePlugin)Plugin.CustomInterface;
// Set the amount of time spent buffering
// data before it is sent along the data path.
AdminNetDataSrc.BufferingTime = 5000;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// 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
| Previous | Next |