public CapturePlayback(SharpDX.Direct2D1.Device device, SharpDX.WIC.ImagingFactory factory, CapturePlayer player) { this.player = player; context = new DeviceContext(device, DeviceContextOptions.EnableMultithreadedOptimizations); CurrentFrame = player.CurrentSurface.Select(surface => CreateFrame(surface)); this.factory = factory; }
public CameraPlayer(AvService avService, Device device, ImagingFactory factory) { this.device = device; underlyingPlayer = avService.GetCapturePlayer(); imagingFactory = factory; }