public void Display() { if (connectedDevice != null) { String video = VideoAndAudio.ConvertByteArrayToString(connectedDevice.TransmitVideo()); Console.WriteLine("Video on Monitor: {0}", video); } }
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)); } }
public void Vlc(VideoAndAudio illegallyDownloadedMovie) { picture2Stream = illegallyDownloadedMovie.Video; Console.WriteLine("Audio on PC Speakers: {0}", VideoAndAudio.ConvertByteArrayToString(illegallyDownloadedMovie.Audio)); }