Moonware.Server.WCF
ConnectCamera Method



Source Index (-1 for new source, existing Index in order to update an existing source).
Name of the class (VideoProvider plugin name. Ex: "VideoSource.Netcam").
List of Moonware.Common.SerializableEnum with the parameters. The default values can be retrieved using GetAvailablePlugins
Connects a new source and default plugins (sourceIdx -1) or update an existing source (sourceIdx >= 0).
Syntax
'Declaration
 
<OperationBehaviorAttribute()>
<PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=True, 
   Action=SecurityAction.Demand, 
   Unrestricted=False)>
Public Function ConnectCamera( _
   ByVal sourceIdx As Integer, _
   ByVal providerName As String, _
   ByVal parameters As SerializableParams _
) As Integer
'Usage
 
Dim instance As MoonwareServerWCF
Dim sourceIdx As Integer
Dim providerName As String
Dim parameters As SerializableParams
Dim value As Integer
 
value = instance.ConnectCamera(sourceIdx, providerName, parameters)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public int ConnectCamera( 
   int sourceIdx,
   string providerName,
   SerializableParams parameters
)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public:
int ConnectCamera( 
   int sourceIdx,
   String^ providerName,
   SerializableParams^ parameters
) 

Parameters

sourceIdx
Source Index (-1 for new source, existing Index in order to update an existing source).
providerName
Name of the class (VideoProvider plugin name. Ex: "VideoSource.Netcam").
parameters
List of Moonware.Common.SerializableEnum with the parameters. The default values can be retrieved using GetAvailablePlugins

Return Value

System.Int32, -1 in case of failure, new source index in case of success.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MoonwareServerWCF Class
MoonwareServerWCF Members

Send Feedback