public static async Task<YouTubeController> LaunchYouTube(this ChromeCastClient client) { client.Channels.Add(new YouTubeChannel(client)); var controller = new YouTubeController(client); await controller.LaunchApplication(); return controller; }
public static async Task <YouTubeController> LaunchYouTube(this ChromeCastClient client) { client.MakeSureChannelExist(new YouTubeChannel(client)); var controller = new YouTubeController(client); await controller.LaunchApplication(); return(controller); }