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