Exemplo n.º 1
0
        public StreamMediaVideoSource(StreamMediaClientManager manager, IVideoSourceConfig config, IVideoSourceFactory factory, IntPtr hWnd)
            : base(config, null, factory)
        {
            HWnd = hWnd;
            mStreamMidiaClientManager = manager;

            mHikClientPtr = Marshal.AllocHGlobal(Marshal.SizeOf(mHikClientAdviseSink));
        }
Exemplo n.º 2
0
        public override void FreeVideoSource(IVideoSource vs)
        {
            StreamMediaClientManager clientManager = StreamMediaClientManager.GetClientManager();

            if (clientManager != null)
            {
                clientManager.CleanupVideoSource(vs.Name);
            }
        }
Exemplo n.º 3
0
        public override IVideoSource CreateVideoSource(IVideoSourceConfig config, IntPtr hWnd)
        {
            StreamMediaClientManager clientManager = StreamMediaClientManager.GetClientManager();

            if (clientManager != null)
            {
                return(clientManager.InitVideoSource(config, this, hWnd));
            }
            return(null);
        }
Exemplo n.º 4
0
 public static void FreeClientManager()
 {
     lock (mLockObj)
     {
         if (mStreamMediaClientManager != null)
         {
             mStreamMediaClientManager.Dispose();
             mStreamMediaClientManager = null;
         }
     }
 }
Exemplo n.º 5
0
        public static StreamMediaClientManager GetClientManager()
        {
            lock (mLockObj)
            {
                if (mStreamMediaClientManager == null)
                {
                    mStreamMediaClientManager = new StreamMediaClientManager();
                }

                return(mStreamMediaClientManager);
            }
        }
Exemplo n.º 6
0
 protected override bool DoCleanup()
 {
     StreamMediaClientManager.FreeClientManager();
     return(true);
 }
Exemplo n.º 7
0
 public StreamMediaPlayer(StreamMediaClientManager manager, IVideoSourceConfig config, IVideoSourceFactory factory, IntPtr hWnd)
     : base(manager, config, factory, hWnd)
 {
     Target = "StreamMedia";
 }
Exemplo n.º 8
0
 public override void Dispose()
 {
     mStreamMidiaClientManager = null;
     base.Dispose();
 }