示例#1
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;
     });
 }
示例#2
0
 public PlaybackAdapter(IPlatformRenderInterface renderInterface, IFramebufferPlayback playback)
 {
     framebufferPlayback  = playback;
     this.renderInterface = renderInterface;
 }