public ExtendedVideo(Video video, VideoSettings videoSettings) { Id = video.Id; Title = video.Title; Author = video.Author; UploadDate = video.UploadDate; Description = video.Description; Duration = video.Duration; Thumbnails = video.Thumbnails; Keywords = video.Keywords; Engagement = video.Engagement; VideoSettings = videoSettings; }
private Utils.VideoSettings GetVideoSettings(VideoId videoId) { StreamManifest manifest = client.Videos.Streams.GetManifestAsync(videoId).Result; Utils.VideoSettings videoSettings = new Utils.VideoSettings() { StreamManifest = manifest, MuxedStreamInfo = manifest.GetMuxedStreams().ToList(), VideoOnlyStreamInfo = manifest.GetVideoOnlyStreams().ToList(), AudioOnlyStreamInfo = manifest.GetAudioOnlyStreams().ToList() }; return(videoSettings); }