public StreamMediaVideoSource(StreamMediaClientManager manager, IVideoSourceConfig config, IVideoSourceFactory factory, IntPtr hWnd) : base(config, null, factory) { HWnd = hWnd; mStreamMidiaClientManager = manager; mHikClientPtr = Marshal.AllocHGlobal(Marshal.SizeOf(mHikClientAdviseSink)); }
public override void FreeVideoSource(IVideoSource vs) { StreamMediaClientManager clientManager = StreamMediaClientManager.GetClientManager(); if (clientManager != null) { clientManager.CleanupVideoSource(vs.Name); } }
public override IVideoSource CreateVideoSource(IVideoSourceConfig config, IntPtr hWnd) { StreamMediaClientManager clientManager = StreamMediaClientManager.GetClientManager(); if (clientManager != null) { return(clientManager.InitVideoSource(config, this, hWnd)); } return(null); }
public static void FreeClientManager() { lock (mLockObj) { if (mStreamMediaClientManager != null) { mStreamMediaClientManager.Dispose(); mStreamMediaClientManager = null; } } }
public static StreamMediaClientManager GetClientManager() { lock (mLockObj) { if (mStreamMediaClientManager == null) { mStreamMediaClientManager = new StreamMediaClientManager(); } return(mStreamMediaClientManager); } }
protected override bool DoCleanup() { StreamMediaClientManager.FreeClientManager(); return(true); }
public StreamMediaPlayer(StreamMediaClientManager manager, IVideoSourceConfig config, IVideoSourceFactory factory, IntPtr hWnd) : base(manager, config, factory, hWnd) { Target = "StreamMedia"; }
public override void Dispose() { mStreamMidiaClientManager = null; base.Dispose(); }