コード例 #1
0
        public override void playVideo()
        {
            Console.Write("Enter video title: ");
            String videoTitle = Console.ReadLine();

            try
            {
                YouTubeVideo video = this.Videos[videoTitle];
                video.play();
            }
            catch (KeyNotFoundException)
            {
                Console.WriteLine("This channel do not have video with given title!");
            }
        }
コード例 #2
0
 public void play(YouTubeVideo video)
 {
     video.play();
 }
コード例 #3
0
 public void play(YouTubeVideo video)
 {
     YouTubeApp.getInstance().Advertisements[0].play();
     video.play();
 }