예제 #1
0
 public void Play(string FileType, string FileName)
 {
     if (FileType == "mp4")
     {
         advancedMediaPlayer.PlayMP4(FileName);
     }
     if (FileType == "vlc")
     {
         advancedMediaPlayer.PlayVLC(FileName);
     }
 }
예제 #2
0
 public void Play(string audiotype, string filename)
 {
     if (audiotype.Equals("vlc"))
     {
         advanced.PlayVlc(filename);
     }
     else if (audiotype.Equals("mp4"))
     {
         advanced.PlayMP4(filename);
     }
 }
예제 #3
0
 public void Play(string audioType, string fileName)
 {
     if (audioType.ToLower() == "vlc")
     {
         advancedMediaPlayer.PlayVLC(fileName);
     }
     else if (audioType.ToLower() == "mp4")
     {
         advancedMediaPlayer.PlayMP4(fileName);
     }
 }
예제 #4
0
        public void Play(string fileName)
        {
            string fileExtension = fileName.Substring(fileName.LastIndexOf('.'));

            if (fileExtension.Equals("vlc"))
            {
                advancedMediaPlayer = new VLCPlayer();
                advancedMediaPlayer.PlayVls(fileName);
            }
            else if (fileExtension.Equals("mp4"))
            {
                advancedMediaPlayer = new MP4Player();
                advancedMediaPlayer.PlayMP4(fileName);
            }
        }