Пример #1
0
 public PlatformPlayer(AvService avService, SharpDX.Direct2D1.Device d2DDevice, SharpDX.WIC.ImagingFactory factory)
 {
     underlyingPlayer = avService.GetStreamPlayer(gpu: true);
     Playback         = underlyingPlayer.Duration
                        .Select(duration => new StreamPlayback(d2DDevice, factory, underlyingPlayer, duration))
                        .DisposeCurrentOnNext();
 }
Пример #2
0
 public PlatformFramebufferPlayer(AvService avService)
 {
     underlyingPlayer = avService.GetStreamPlayer(gpu: false);
     Playback         = underlyingPlayer.Duration
                        .Select(duration => new FramebufferStreamPlayback(underlyingPlayer, duration));
     Playback.Subscribe(playback =>
     {
         currentPlayback?.Dispose();
         currentPlayback = playback;
     });
 }
Пример #3
0
 public CameraPlayer(AvService avService, Device device, ImagingFactory factory)
 {
     this.device      = device;
     underlyingPlayer = avService.GetCapturePlayer();
     imagingFactory   = factory;
 }