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.
The BufferingTime property specifies and retrieves the amount of time that the plug-in buffers data before sending it along the data path.
IWMSAdminNetworkDataSourcePlugin.BufferingTime = IntegerInteger = IWMSAdminNetworkDataSourcePlugin.BufferingTime
Property Value
Integer containing the amount of buffering time, in .01 nanosecond units.
If this property fails, it throws an exception.
Number |
Description |
|---|---|
0x80070057 |
The value specified for the buffering time is less than zero or greater than 60000. |
Remarks
The maximum buffering time is sixty seconds.
Example
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub SetBufferTime()
' Declare variables.
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim AdminNetDataSrc As IWMSAdminNetworkDataSourcePlugin
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the plug-in to be configured.
Plugin = Server.DataSources.Item("WMS Network Data Source")
' Retrieve the custom interface of the plug-in.
AdminNetDataSrc = Plugin.CustomInterface
' Set the amount of time spent buffering
' data before it is sent along the data path.
AdminNetDataSrc.BufferingTime = 5000
Catch excCom As COMException
' TODO: Handle COM exceptions.
Catch exc As Exception
' TODO: Handle errors.
Finally
' TODO: Clean-up code goes here.
End Try
End Sub
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.