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