public VideoInfor(int formatCode, VideoType type, int resolution, AdaptiveType adaptiveType) { this.Type = type; this.FormatCode = formatCode; this.Resolution = resolution; this.AdaptiveType = adaptiveType; }
public void IsAdaptiveType(AdaptiveType type, Size size) { AdaptiveEventArgs args = new AdaptiveEventArgs(); args.type = type; args.NewSize = size; ItemsWrapGridType?.Invoke(this, args); }
private VideoInfo(int formatCode, VideoType videoType, int resolution, bool is3D, AudioType audioType, int audioBitrate, AdaptiveType adaptiveType) { this.FormatCode = formatCode; this.VideoType = videoType; this.Resolution = resolution; this.Is3D = is3D; this.AudioType = audioType; this.AudioBitrate = audioBitrate; this.AdaptiveType = adaptiveType; }
private VideoInfo(int formatCode, VideoType videoType, int resolution, bool is3D, AudioType audioType, int audioBitrate, AdaptiveType adaptiveType) { FormatCode = formatCode; VideoType = videoType; Resolution = resolution; Is3D = is3D; AudioType = audioType; AudioBitrate = audioBitrate; AdaptiveType = adaptiveType; }
/// <summary> /// Initializes a new instance of the <see cref="AdaptiveStream" /> class with the specified properties. /// </summary> /// <param name="itag">The stream's itag code.</param> /// <param name="url">The stream's URL.</param> /// <param name="streamType">The stream's type/container.</param> /// <param name="videoQuality">The stream's video quality.</param> /// <param name="adaptiveType">The type of adaptive stream.</param> /// <param name="contentLength">The content length of the stream (in bytes).</param> /// <param name="fps">The stream's framerate (video only streams).</param> /// <param name="bitrate">The video's bitrate (audio only streams).</param> /// <param name="resolution">The video resolution (video only streams).</param> public AdaptiveStream(int itag, string url, StreamType streamType, VideoQuality?videoQuality, AdaptiveType adaptiveType, int contentLength, int fps, int bitrate, Resolution resolution) : base(itag, url, streamType, videoQuality) { AdaptiveType = adaptiveType; ContentLength = contentLength; Fps = fps; Bitrate = bitrate; Resolution = resolution; }
static void CompileThis() { AdaptiveType a = AdaptiveType.Audio; a = AdaptiveType.None; a = AdaptiveType.Video; AudioExtractionException b = new AudioExtractionException(default(string)); AudioType c = AudioType.Aac; c = AudioType.Mp3; c = AudioType.Unknown; c = AudioType.Vorbis; DownloadUrlResolver.DecryptDownloadUrl(default(VideoInfo)); IEnumerable <VideoInfo> d = DownloadUrlResolver.GetDownloadUrls(default(string)); d = DownloadUrlResolver.GetDownloadUrls(default(string), default(bool)); string e = default(string); bool f = DownloadUrlResolver.TryNormalizeYoutubeUrl(e, out e); VideoInfo g = default(VideoInfo); AdaptiveType h = g.AdaptiveType; int i = g.AudioBitrate; string j = g.AudioExtension; AudioType k = g.AudioType; bool l = g.CanExtractAudio; string m = g.DownloadUrl; int n = g.FormatCode; bool o = g.Is3D; bool p = g.RequiresDecryption; int q = g.Resolution; string r = g.Title; string s = g.VideoExtension; VideoType t = g.VideoType; VideoNotAvailableException u = new VideoNotAvailableException(); u = new VideoNotAvailableException(default(string)); VideoType v = VideoType.Flash; v = VideoType.Mobile; v = VideoType.Mp4; v = VideoType.Unknown; v = VideoType.WebM; YoutubeParseException w = new YoutubeParseException(default(string), default(Exception)); }
private VideoInfo(int formatCode, VideoType videoType, int resolution, bool is3D, AudioType audioType, int audioBitrate, AdaptiveType adaptiveType) : this(formatCode, videoType, resolution, is3D, audioType, audioBitrate, adaptiveType, 0) { }