Пример #1
0
 public void Player(string fileType, string fileName)
 {
     if (fileType.ToLower().Contains("vlc"))
     {
         AdvancedMediaPlayer.playVlc(fileName);
     }
     else if (fileType.ToLower().Contains("mp4"))
     {
         AdvancedMediaPlayer.playMp4(fileType);
     }
 }
Пример #2
0
 public void play(String audioType, String fileName)
 {
     if (String.Equals(audioType, "vlc", StringComparison.OrdinalIgnoreCase))
     {
         advancedMusicPlayer.playVlc(fileName);
     }
     else if (String.Equals(audioType, "mp4", StringComparison.OrdinalIgnoreCase))
     {
         advancedMusicPlayer.playMp4(fileName);
     }
 }
Пример #3
0
 public void play(string audioType, string fileName)
 {
     if (audioType.ToLowerInvariant().Equals("vlc"))
     {
         advancedMediaPlayer.playVlc(fileName);
     }
     else
     {
         advancedMediaPlayer.playMp4(fileName);
     }
 }
Пример #4
0
 public void play(string audioType, string fileName)
 {
     if (audioType.Equals("vlc"))
     {
         amp.playVlc(fileName);
     }
     else if (audioType.Equals("mp4"))
     {
         amp.playMp4(fileName);
     }
 }
Пример #5
0
 public void Play(string audioType, string fileName)
 {
     if ("vlc".Contains(audioType))
     {
         advancedMusicPlayer.playVlc(fileName);
     }
     else if ("mp4".Contains(audioType))
     {
         advancedMusicPlayer.playMp4(fileName);
     }
 }
Пример #6
0
        public string play(string audioType, string fileName)
        {
            if (audioType.Equals("vlc"))
            {
                return(advancedMediaPlayer.playVlc(fileName));
            }
            else if (audioType.Equals("mp4"))
            {
                return(advancedMediaPlayer.playMp4(fileName));
            }

            return("---");
        }
Пример #7
0
        public string play(string audioType, string fileName)
        {
            string str = "";

            if (audioType.Equals("vlc"))
            {
                str = advancedMusicPlayer.playVlc(fileName);
            }
            else if (audioType.Equals("mp4"))
            {
                str = advancedMusicPlayer.playMp4(fileName);
            }
            return(str);
        }