private void TryRemoveInputStreamHandler() { this.player = playbackService.Player as CSCorePlayer; if (this.player != null && this.haveAddedInputStream) { this.player.NotificationSource.SingleBlockRead -= InputStream; this.haveAddedInputStream = false; } }
private void TryAddInputStreamHandler() { this.player = playbackService.Player as CSCorePlayer; if (this.player != null && !this.haveAddedInputStream) { this.player.notificationSource.SingleBlockRead += InputStream; this.haveAddedInputStream = true; } }