コード例 #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));
        }
コード例 #2
0
        public override void FreeVideoSource(IVideoSource vs)
        {
            StreamMediaClientManager clientManager = StreamMediaClientManager.GetClientManager();

            if (clientManager != null)
            {
                clientManager.CleanupVideoSource(vs.Name);
            }
        }
コード例 #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);
        }
コード例 #4
0
 public static void FreeClientManager()
 {
     lock (mLockObj)
     {
         if (mStreamMediaClientManager != null)
         {
             mStreamMediaClientManager.Dispose();
             mStreamMediaClientManager = null;
         }
     }
 }
コード例 #5
0
        public static StreamMediaClientManager GetClientManager()
        {
            lock (mLockObj)
            {
                if (mStreamMediaClientManager == null)
                {
                    mStreamMediaClientManager = new StreamMediaClientManager();
                }

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