Exemplo n.º 1
0
 public void Display()
 {
     if (connectedDevice != null)
     {
         String video = VideoAndAudio.ConvertByteArrayToString(connectedDevice.TransmitVideo());
         Console.WriteLine("Video on Monitor: {0}", video);
     }
 }
Exemplo n.º 2
0
 public void Watch()
 {
     if (this.power && connectedDevice != null)
     {
         VideoAndAudio receivedBinary = connectedDevice.StreamVideoAndAudio();
         Console.WriteLine("Video on TV: {0}", VideoAndAudio.ConvertByteArrayToString(receivedBinary.Video));
         Console.WriteLine("Audio on TV: {0}", VideoAndAudio.ConvertByteArrayToString(receivedBinary.Audio));
     }
 }
Exemplo n.º 3
0
        public void Vlc(VideoAndAudio illegallyDownloadedMovie)
        {
            picture2Stream = illegallyDownloadedMovie.Video;

            Console.WriteLine("Audio on PC Speakers: {0}", VideoAndAudio.ConvertByteArrayToString(illegallyDownloadedMovie.Audio));
        }