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