public void Play(string audioType, string fileName)
        {
            if (string.IsNullOrEmpty(audioType) &&
                string.IsNullOrEmpty(fileName))
            {
                throw new ArgumentNullException();
            }
            if (_advanceMediaPlayer == null)
            {
                throw new ArgumentNullException();
            }
            switch (audioType)
            {
            case "vlc":
                _advanceMediaPlayer.PlayVlc(fileName);
                break;

            case "mp4":
                _advanceMediaPlayer.PlayMp4(fileName);
                break;

            default:
                throw new Exception(audioType + "is not find");
            }
        }
Ejemplo n.º 2
0
 public void Play(string audioType, string fileName)
 {
     if (String.Equals(audioType, "vlc"))
     {
         _advancedMedia.PlayVlc(fileName);
     }
     else if (String.Equals(audioType, "mp4"))
     {
         _advancedMedia.PlayMp4(fileName);
     }
 }
Ejemplo n.º 3
0
 public void Play(string audioType, string fileName)
 {
     if (audioType.Contains("vlc"))
     {
         advancedMediaPlayer.PlayVlc(fileName);
     }
     else if (audioType.Contains("mp4"))
     {
         advancedMediaPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 4
0
 public void Play(string audioType, string fileName)
 {
     if (audioType == "Mp4")
     {
         _advancedMediaPlayer.PlayMp4(fileName);
     }
     else if (audioType == "Vlc")
     {
         _advancedMediaPlayer.PlayVlc(fileName);
     }
 }
Ejemplo n.º 5
0
 public void Play(string audioType, string fileName)
 {
     if (audioType.Equals("vlc", StringComparison.OrdinalIgnoreCase))
     {
         advancedMusicPlayer.PlayVlc(fileName);
     }
     else if (audioType.Equals("mp4", StringComparison.OrdinalIgnoreCase))
     {
         advancedMusicPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 6
0
 public void Play(String audioType, String fileName)
 {
     if (audioType.Equals("vlc"))
     {
         advancedMusicPlayer.PlayVlc(fileName);
     }
     else if (audioType.Equals("mp4"))
     {
         advancedMusicPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 7
0
 public void Play(string fileName)
 {
     if (_advancedMediaPlayer.GetType() == typeof(VlcPlayer))
     {
         _advancedMediaPlayer.PlayVlc(fileName);
     }
     if (_advancedMediaPlayer.GetType() == typeof(Mp4Player))
     {
         _advancedMediaPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 8
0
 public void Play(string audiotype, string filename)
 {
     if (audiotype.Equals("vlc"))
     {
         advanced.PlayVlc(filename);
     }
     else if (audiotype.Equals("mp4"))
     {
         advanced.PlayMP4(filename);
     }
 }
Ejemplo n.º 9
0
 public void Play(string audioType, string fileName)
 {
     if (audioType == "VLC")
     {
         _advancedMusicPlayer.PlayVlc(fileName);
     }
     else if (audioType == "mp4")
     {
         _advancedMusicPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 10
0
 public void Play(string AudioType, string Filename)
 {
     if (AudioType.Equals("vlc"))
     {
         advancedMediaPlayer.PlayVlc(Filename);
     }
     else if (AudioType.Equals("mp4"))
     {
         advancedMediaPlayer.PlayMp4(Filename);
     }
 }
Ejemplo n.º 11
0
 public void Play(string audioType, string fileName)
 {
     if (audioType.ToLower().Equals("vlc"))
     {
         _advancedMediaPlayer.PlayVlc(fileName);
     }
     else if (audioType.ToLower().Equals("mp4"))
     {
         _advancedMediaPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 12
0
 public void Play(String audioType, String fileName)
 {
     if (audioType.Equals("vlc", StringComparison.InvariantCultureIgnoreCase))
     {
         advancedMusicPlayer.PlayVlc(fileName);
     }
     else if (audioType.Equals("mp4", StringComparison.InvariantCultureIgnoreCase))
     {
         advancedMusicPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 13
0
 public void Play(string mediaType)
 {
     if (mediaType.Equals("vlc"))
     {
         advancedMediaPlayer.PlayVlc();
     }
     else if (mediaType.Equals("mp4"))
     {
         advancedMediaPlayer.PlayMp4();
     }
 }
Ejemplo n.º 14
0
 public void Play(string audioType, string fileName)
 {
     if (audioType == "vlc")
     {
         _mediaPlayer.PlayVlc(fileName);
     }
     else if (audioType == "mp4")
     {
         _mediaPlayer.PlayMp4(fileName);
     }
 }
Ejemplo n.º 15
0
 public bool Play(string audioType, string fileName)
 {
     if (audioType == "vlc")
     {
         _AdvancedMusicPlayer.PlayVlc(fileName);
     }
     else if (audioType == "mp4")
     {
         _AdvancedMusicPlayer.PlayMp4(fileName);
     }
     else
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 16
0
        public void Play(AudioType audioType, string fileName)
        {
            switch (audioType)
            {
            case AudioType.VLC:
                advancedMediaPlayer.PlayVlc(fileName);
                break;

            case AudioType.MP4:
                advancedMediaPlayer.PlayMp4(fileName);
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(audioType), audioType, null);
            }
        }
Ejemplo n.º 17
0
        public void Play(AudioType audioType, string fileName)
        {
            switch (audioType)
            {
            case AudioType.Vlc:
                m_advancedMediaPlayer.PlayVlc(fileName);
                break;

            case AudioType.Mp4:
                m_advancedMediaPlayer.PlayMp4(fileName);
                break;

            case AudioType.Avi:
                Console.WriteLine("The format is invalid.");
                break;
            }
        }