public void Play(string FileType, string FileName) { if (FileType == "mp4") { advancedMediaPlayer.PlayMP4(FileName); } if (FileType == "vlc") { advancedMediaPlayer.PlayVLC(FileName); } }
public void Play(string audiotype, string filename) { if (audiotype.Equals("vlc")) { advanced.PlayVlc(filename); } else if (audiotype.Equals("mp4")) { advanced.PlayMP4(filename); } }
public void Play(string audioType, string fileName) { if (audioType.ToLower() == "vlc") { advancedMediaPlayer.PlayVLC(fileName); } else if (audioType.ToLower() == "mp4") { advancedMediaPlayer.PlayMP4(fileName); } }
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); } }