Exemplo n.º 1
0
 public MediaAdapter(string audioType)
 {
     if (audioType == "vlc")
     {
         player = new VlcPlayer();
     }
     else if (audioType == "mp4")
     {
         player = new Mp4Player();
     }
 }
Exemplo n.º 2
0
 public MediaAdapter(string audioType)
 {
     if (audioType.Equals("vlc", StringComparison.OrdinalIgnoreCase))
     {
         advancedPlayer = new VLCPlayer();
     }
     else if (audioType.Equals("mp4", StringComparison.OrdinalIgnoreCase))
     {
         advancedPlayer = new MP4Player();
     }
 }