Index: trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/PlayJpegLocationSharp.csproj
===================================================================
--- trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/PlayJpegLocationSharp.csproj (revision 367)
+++ trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/PlayJpegLocationSharp.csproj (revision 367)
@@ -0,0 +1,71 @@
+
+
+
+ Debug
+ x86
+ 8.0.30703
+ 2.0
+ {9FCD5193-5A19-496F-A29B-57F32892B1FF}
+ Exe
+ Properties
+ PlayJpegLocationSharp
+ PlayJpegLocationSharp
+ v4.0
+ Client
+ 512
+
+
+ x86
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ x86
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ ..\DirectShowLib\lib\DirectShowLib-2005.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {BDCE8B49-8895-4605-8278-E9A1FBC889AC}
+ 1
+ 0
+ 0
+ tlbimp
+ False
+ True
+
+
+
+
+
Index: trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/Program.cs
===================================================================
--- trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/Program.cs (revision 367)
+++ trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/Program.cs (revision 367)
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using DirectShowLib;
+using AlaxInfoIpVideoSource;
+
+namespace PlayJpegLocationSharp
+{
+ class Program
+ {
+ [STAThread]
+ static void Main(string[] args)
+ {
+ FilterGraph filterGraph = new FilterGraph();
+ IJpegVideoSourceFilter sourceFilter = Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("{A8DA2ECB-DEF6-414D-8CE2-E651640DBA4F}"))) as IJpegVideoSourceFilter;
+ IBaseFilter sourceBaseFilter = sourceFilter as IBaseFilter;
+ (filterGraph as IFilterGraph2).AddFilter(sourceBaseFilter, "Source");
+ //sourceFilter.Location = @"http://p.viewnetcam.com:60001/nphMotionJpeg?Resolution=640x480&Quality=Standard";
+ //sourceFilter.Width = 640;
+ //sourceFilter.Height = 480;
+ sourceFilter.Location = @"http://192.168.88.52/nph-jpeg.cgi";
+ sourceFilter.Width = 1280;
+ sourceFilter.Height = 960;
+ IPin pin = DsFindPin.ByDirection(sourceBaseFilter, PinDirection.Output, 0);
+ (filterGraph as IFilterGraph2).Render(pin);
+ (filterGraph as IMediaControl).Run();
+ EventCode eventCode;
+ (filterGraph as IMediaEvent).WaitForCompletion(-1, out eventCode);
+ }
+ }
+}
Index: trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/Properties/AssemblyInfo.cs
===================================================================
--- trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/Properties/AssemblyInfo.cs (revision 367)
+++ trunk/IpVideoSource/Sample/.NET/PlayJpegLocationSharp/Properties/AssemblyInfo.cs (revision 367)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("PlayJpegLocationSharp")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("PlayJpegLocationSharp")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("cd715208-e6e5-4208-abc2-5932b354996b")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Index: trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/Program.cs
===================================================================
--- trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/Program.cs (revision 367)
+++ trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/Program.cs (revision 367)
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Diagnostics;
+using AlaxInfoIpVideoSource;
+
+namespace RegisterJpegVideoSourceFilter
+{
+ class Program
+ {
+ [STAThread]
+ static void Main(string[] args)
+ {
+ JpegVideoSourceFilterRegistry registry = new JpegVideoSourceFilterRegistry();
+ foreach (JpegVideoSourceFilterRegistryItem item in registry)
+ Console.WriteLine(string.Format("{0} - {1}", item.InstanceName, item.FriendlyName));
+ Console.WriteLine("-- Before Registration --");
+ JpegVideoSourceFilter filter = new JpegVideoSourceFilter();
+ // NOTE: Registration and Unregistration requires administrative access and elevated permissions
+ filter.Location = "http://192.168.88.21/nph-mjpeg.cgi";
+ filter.Width = 1280;
+ filter.Height = 960;
+ registry.Register("Test Camera", filter);
+ Console.WriteLine("-- After Registration --");
+ foreach (JpegVideoSourceFilterRegistryItem item in registry)
+ Console.WriteLine(string.Format("{0} - {1}", item.InstanceName, item.FriendlyName));
+ Console.WriteLine("-- Before Unregistration --");
+ //registry["Test Camera"].Unregister();
+ Console.WriteLine("-- After Unregistration --");
+ foreach (JpegVideoSourceFilterRegistryItem item in registry)
+ Console.WriteLine(string.Format("{0} - {1}", item.InstanceName, item.FriendlyName));
+ }
+ }
+}
Index: trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/Properties/AssemblyInfo.cs
===================================================================
--- trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/Properties/AssemblyInfo.cs (revision 367)
+++ trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/Properties/AssemblyInfo.cs (revision 367)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("RegisterJpegVideoSourceFilter")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("RegisterJpegVideoSourceFilter")]
+[assembly: AssemblyCopyright("Copyright © 2015")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a2c1d768-5a11-4275-9345-65799c9a7210")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Index: trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/RegisterJpegVideoSourceFilter.csproj
===================================================================
--- trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/RegisterJpegVideoSourceFilter.csproj (revision 367)
+++ trunk/IpVideoSource/Sample/.NET/RegisterJpegVideoSourceFilter/RegisterJpegVideoSourceFilter.csproj (revision 367)
@@ -0,0 +1,68 @@
+
+
+
+ Debug
+ x86
+ 8.0.30703
+ 2.0
+ {B359F174-C897-4F35-8281-3D7AC90629EC}
+ Exe
+ Properties
+ RegisterJpegVideoSourceFilter
+ RegisterJpegVideoSourceFilter
+ v4.0
+ Client
+ 512
+
+
+ x86
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ x86
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {BDCE8B49-8895-4605-8278-E9A1FBC889AC}
+ 1
+ 0
+ 0
+ tlbimp
+ False
+ True
+
+
+
+
+
Index: trunk/IpVideoSource/Sample/Samples.sln
===================================================================
--- trunk/IpVideoSource/Sample/Samples.sln (revision 366)
+++ trunk/IpVideoSource/Sample/Samples.sln (revision 367)
@@ -4,7 +4,7 @@
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PlayJpegLocation", "PlayJpegLocation\PlayJpegLocation.vcxproj", "{235E8D0F-E886-4ED1-810C-13407162C811}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlayJpegLocationSharp", "C#.NET\PlayJpegLocationSharp\PlayJpegLocationSharp.csproj", "{9FCD5193-5A19-496F-A29B-57F32892B1FF}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlayJpegLocationSharp", ".NET\PlayJpegLocationSharp\PlayJpegLocationSharp.csproj", "{9FCD5193-5A19-496F-A29B-57F32892B1FF}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegisterJpegVideoSourceFilter", "C#.NET\RegisterJpegVideoSourceFilter\RegisterJpegVideoSourceFilter.csproj", "{B359F174-C897-4F35-8281-3D7AC90629EC}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegisterJpegVideoSourceFilter", ".NET\RegisterJpegVideoSourceFilter\RegisterJpegVideoSourceFilter.csproj", "{B359F174-C897-4F35-8281-3D7AC90629EC}"
EndProject
Global